Skip to content

Commit

Permalink
fix ignore_resume_networks bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
xinntao committed Jul 5, 2021
1 parent af64b7e commit 4a96712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basicsr/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def check_resume(opt, resume_iter):
for network in networks:
name = f'pretrain_{network}'
basename = network.replace('network_', '')
if opt['path'].get('ignore_resume_networks') is None or (basename
if opt['path'].get('ignore_resume_networks') is None or (network
not in opt['path']['ignore_resume_networks']):
opt['path'][name] = osp.join(opt['path']['models'], f'net_{basename}_{resume_iter}.pth')
logger.info(f"Set {name} to {opt['path'][name]}")
Expand Down

0 comments on commit 4a96712

Please sign in to comment.