pull/275/head
Glenn Jocher 2020-07-02 09:26:03 -07:00
parent a03adb5ab8
commit 13f69777a6
1 changed files with 1 additions and 1 deletions

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