rename /checkpoints to /weights
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Start
|
||||
sudo rm -rf yolov3 && git clone https://github.com/ultralytics/yolov3 && cd yolov3 && python3 train.py -img_size 416 -epochs 160
|
||||
sudo rm -rf yolov3 && git clone https://github.com/ultralytics/yolov3 && cd yolov3 && python3 train.py -img_size 416
|
||||
|
||||
# Resume
|
||||
python3 train.py -img_size 416 -resume 1
|
||||
|
||||
+1
-1
@@ -410,7 +410,7 @@ def non_max_suppression(prediction, conf_thres=0.5, nms_thres=0.4):
|
||||
return output
|
||||
|
||||
|
||||
def strip_optimizer_from_checkpoint(filename='checkpoints/best.pt'):
|
||||
def strip_optimizer_from_checkpoint(filename='weights/best.pt'):
|
||||
# Strip optimizer from *.pt files for lighter files (reduced by 2/3 size)
|
||||
import torch
|
||||
a = torch.load(filename, map_location='cpu')
|
||||
|
||||
Reference in New Issue
Block a user