Spaces:
Running
Running
Update main_test_SRMNet.py
Browse files- main_test_SRMNet.py +0 -2
main_test_SRMNet.py
CHANGED
@@ -34,8 +34,6 @@ 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 |
-
|
38 |
-
out_dir = os.path.join(args.result_dir, args.task)
|
39 |
os.makedirs(out_dir, exist_ok=True)
|
40 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
41 |
# Build model
|
|
|
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(out_dir, exist_ok=True)
|
38 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
39 |
# Build model
|