52Hz commited on
Commit
dd8328f
·
1 Parent(s): a4da779

Update main_test_SRMNet.py

Browse files
Files changed (1) hide show
  1. 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(out_dir, exist_ok=True)
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)