ugh it never ends

This commit is contained in:
James Betker 2022-05-23 10:58:28 -06:00
parent 5d13d38119
commit bb36bb4db5

View File

@ -35,7 +35,7 @@ def parse(opt_path, is_train=True):
# path # path
if 'path' in opt.keys(): if 'path' in opt.keys():
for key, path in opt['path'].items(): for key, path in opt['path'].items():
if path and key in opt['path'] and key != 'strict_load': if path and key in opt['path'] and (key not in ['strict_load', 'optimizer_reset']):
opt['path'][key] = osp.expanduser(path) opt['path'][key] = osp.expanduser(path)
else: else:
opt['path'] = {} opt['path'] = {}