Spaces:
Running
Running
Update main_test_SRMNet.py
Browse files- main_test_SRMNet.py +1 -1
main_test_SRMNet.py
CHANGED
@@ -34,7 +34,7 @@ def main():
|
|
34 |
files = natsorted(glob.glob(os.path.join(inp_dir, '*')))
|
35 |
if len(files) == 0:
|
36 |
raise Exception("\nNo images in {} \nPlease enter the following tasks: \n\n{}".format(inp_dir, '\n'.join(tasks)))
|
37 |
-
os.makedirs(
|
38 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
39 |
# Build model
|
40 |
model = define_model(args)
|
|
|
34 |
files = natsorted(glob.glob(os.path.join(inp_dir, '*')))
|
35 |
if len(files) == 0:
|
36 |
raise Exception("\nNo images in {} \nPlease enter the following tasks: \n\n{}".format(inp_dir, '\n'.join(tasks)))
|
37 |
+
os.makedirs(args.result_dir, exist_ok=True)
|
38 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
39 |
# Build model
|
40 |
model = define_model(args)
|