This commit is contained in:
Glenn Jocher 2019-04-08 23:45:52 +02:00
parent dae3604705
commit e19b0effb2
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ def train(
if resume: # Load previously saved model
if transfer: # Transfer learning
chkpt = torch.load(weights + 'yolov3-spp.pt', map_location=device)
chkpt = torch.load(weights + 'yolov3.pt', map_location=device)
model.load_state_dict({k: v for k, v in chkpt['model'].items() if v.numel() > 1 and v.shape[0] != 255},
strict=False)
for p in model.parameters():