updates
This commit is contained in:
parent
acf31e477b
commit
48d4c5938d
22
utils/gcp.sh
22
utils/gcp.sh
|
@ -9,12 +9,11 @@ git clone https://github.com/cocodataset/cocoapi && cd cocoapi/PythonAPI && make
|
||||||
sudo shutdown
|
sudo shutdown
|
||||||
|
|
||||||
# Re-clone
|
# Re-clone
|
||||||
rm -rf yolov3
|
rm -rf yolov3 # Warning: remove existing
|
||||||
git clone https://github.com/ultralytics/yolov3 # master
|
git clone https://github.com/ultralytics/yolov3 # master
|
||||||
# git clone -b test --depth 1 https://github.com/ultralytics/yolov3 test # branch
|
# git clone -b test --depth 1 https://github.com/ultralytics/yolov3 test # branch
|
||||||
cp -r cocoapi/PythonAPI/pycocotools yolov3
|
cp -r cocoapi/PythonAPI/pycocotools yolov3
|
||||||
cp -r weights yolov3
|
cp -r weights yolov3 && cd yolov3
|
||||||
cd yolov3
|
|
||||||
|
|
||||||
# Train
|
# Train
|
||||||
python3 train.py
|
python3 train.py
|
||||||
|
@ -61,23 +60,16 @@ python3 test.py --save-json --img-size 320
|
||||||
sudo shutdown
|
sudo shutdown
|
||||||
|
|
||||||
# Unit tests
|
# Unit tests
|
||||||
rm -rf yolov3
|
|
||||||
git clone https://github.com/ultralytics/yolov3 # master
|
|
||||||
cp -r cocoapi/PythonAPI/pycocotools yolov3
|
|
||||||
cp -r weights yolov3 && cd yolov3
|
|
||||||
python3 detect.py # detect 2 persons, 1 tie
|
python3 detect.py # detect 2 persons, 1 tie
|
||||||
python3 test.py --data data/coco_32img.data # test mAP = 0.78
|
python3 test.py --data data/coco_32img.data # test mAP = 0.78
|
||||||
python3 train.py --data data/coco_32img.data --epochs 4 --nosave # train 4 epochs
|
python3 train.py --data data/coco_32img.data --epochs 4 --nosave # train 4 epochs
|
||||||
|
|
||||||
|
# AlexyAB Darknet
|
||||||
|
./darknet detector train ../supermarket2/supermarket2.data cfg/yolov3-spp-sm2.cfg darknet53.conv.74 # train
|
||||||
|
./darknet detector train ../supermarket2/supermarket2.data cfg/yolov3-spp.cfg backup/yolov3-spp_last.weights # resume
|
||||||
|
python3 test.py --data ../supermarket2/supermarket2.data --weights ../darknet/backup yolov3-spp_3000.weights # test
|
||||||
|
|
||||||
# Debug/Development
|
# Debug/Development
|
||||||
rm -rf yolov3
|
|
||||||
git clone https://github.com/ultralytics/yolov3 # master
|
|
||||||
# git clone -b test --depth 1 https://github.com/ultralytics/yolov3 yolov3_test # branch
|
|
||||||
cp -r cocoapi/PythonAPI/pycocotools yolov3
|
|
||||||
cp -r weights yolov3 && cd yolov3
|
|
||||||
python3 train.py --evolve --data data/coco_1k5k.data --epochs 30 --img-size 320
|
python3 train.py --evolve --data data/coco_1k5k.data --epochs 30 --img-size 320
|
||||||
gsutil cp evolve.txt gs://ultralytics
|
gsutil cp evolve.txt gs://ultralytics
|
||||||
sudo shutdown
|
sudo shutdown
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue