From bb36bb4db502ea17b783e46669e69a64a9151cbc Mon Sep 17 00:00:00 2001 From: James Betker Date: Mon, 23 May 2022 10:58:28 -0600 Subject: [PATCH] ugh it never ends --- codes/utils/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codes/utils/options.py b/codes/utils/options.py index c0cadb6b..5be1f37f 100644 --- a/codes/utils/options.py +++ b/codes/utils/options.py @@ -35,7 +35,7 @@ def parse(opt_path, is_train=True): # path if 'path' in opt.keys(): 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) else: opt['path'] = {}