updates
This commit is contained in:
@@ -105,6 +105,8 @@ def train():
|
||||
if opt.transfer:
|
||||
chkpt['model'] = {k: v for k, v in chkpt['model'].items() if model.state_dict()[k].numel() == v.numel()}
|
||||
model.load_state_dict(chkpt['model'], strict=False)
|
||||
else:
|
||||
model.load_state_dict(chkpt['model'])
|
||||
|
||||
# load optimizer
|
||||
if chkpt['optimizer'] is not None:
|
||||
|
||||
Reference in New Issue
Block a user