52Hz commited on
Commit
1b2d9a7
·
1 Parent(s): cba523e

Update main_test_SRMNet.py

Browse files
Files changed (1) hide show
  1. main_test_SRMNet.py +1 -2
main_test_SRMNet.py CHANGED
@@ -30,8 +30,7 @@ def main():
30
  args = parser.parse_args()
31
 
32
  # Prepare testing data
33
- inp_dir = os.path.join(args.input_dir, args.task)
34
- files = natsorted(glob(os.path.join(inp_dir, '*.PNG')))
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)
 
30
  args = parser.parse_args()
31
 
32
  # Prepare testing data
33
+ files = natsorted(glob(os.path.join(args.inp_dir, '*.PNG')))
 
34
  if len(files) == 0:
35
  raise Exception("\nNo images in {} \nPlease enter the following tasks: \n\n{}".format(inp_dir, '\n'.join(tasks)))
36
  os.makedirs(args.result_dir, exist_ok=True)