rename /checkpoints to /weights

This commit is contained in:
Glenn Jocher
2018-10-27 00:42:34 +02:00
parent 553254bbd6
commit 0ae90d0fb7
6 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -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
View File
@@ -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')