Skip to content

Commit 7b4b55f

Browse files
authored
Support downloading SwinIR pretrained models
1 parent 6c38f59 commit 7b4b55f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main_download_pretrained_models.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def download_pretrained_model(model_dir='model_zoo', model_name='dncnn3.pth'):
111111
else:
112112
download_pretrained_model(args.model_dir, model_name)
113113
elif method_model in model_zoo: # model, do not need for loop
114-
if 'SwinIR' in model_name:
114+
if 'SwinIR' in method_model:
115115
download_pretrained_model(os.path.join(args.model_dir, 'swinir'), method_model)
116116
else:
117117
download_pretrained_model(args.model_dir, method_model)
@@ -125,4 +125,4 @@ def download_pretrained_model(model_dir='model_zoo', model_name='dncnn3.pth'):
125125

126126

127127

128-
128+

0 commit comments

Comments
 (0)