This commit is contained in:
Glenn Jocher committed 2020-07-02 09:26:03 -07:00
1 parent a03adb5ab8
commit 13f69777a6
1 file changed
+1 -1
+1 -1
View File
@@ -119,7 +119,7 @@ def train(hyp):
model.load_state_dict(ckpt['model'], strict=False)
except KeyError as e:
s = "%s is not compatible with %s. This may be due to model differences or %s may be out of date. " \
"Please delete or update %s and try again, or use --weights '' to train from scatch." \
"Please delete or update %s and try again, or use --weights '' to train from scratch." \
% (opt.weights, opt.cfg, opt.weights, opt.weights)
raise KeyError(s) from e