Spaces:
Running
Running
Update main_test_SRMNet.py
Browse files- 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
|
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)
|