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

Update main_test_SRMNet.py

Browse files
Files changed (1) hide show
  1. main_test_SRMNet.py +1 -1
main_test_SRMNet.py CHANGED
@@ -31,7 +31,7 @@ def main():
31
 
32
  # Prepare testing data
33
  inp_dir = os.path.join(args.input_dir, args.task)
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)
 
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)