updates
This commit is contained in:
parent
ac22a717f1
commit
9e60e97a6c
2
train.py
2
train.py
|
@ -43,7 +43,7 @@ def train(
|
||||||
start_epoch = 0
|
start_epoch = 0
|
||||||
best_loss = float('inf')
|
best_loss = float('inf')
|
||||||
if resume:
|
if resume:
|
||||||
checkpoint = torch.load('weights/yolov3.pt', map_location='cpu')
|
checkpoint = torch.load(latest, map_location='cpu')
|
||||||
|
|
||||||
# Load weights to resume from
|
# Load weights to resume from
|
||||||
model.load_state_dict(checkpoint['model'])
|
model.load_state_dict(checkpoint['model'])
|
||||||
|
|
Loading…
Reference in New Issue