lower batch-size
Browse files- .github/workflows/ci-testing.yml +17 -10
.github/workflows/ci-testing.yml
CHANGED
@@ -47,21 +47,28 @@ jobs:
|
|
47 |
pip list
|
48 |
shell: bash
|
49 |
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
|
54 |
- name: Tests
|
55 |
run: |
|
56 |
for x in yolov5s yolov5m yolov5l yolov5x # models
|
57 |
do
|
58 |
di=cpu # inference devices
|
59 |
-
|
60 |
-
python
|
61 |
-
|
62 |
-
python
|
63 |
-
|
64 |
-
python
|
65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
done
|
67 |
shell: bash
|
|
|
47 |
pip list
|
48 |
shell: bash
|
49 |
|
50 |
+
#- name: Download data
|
51 |
+
# run: |
|
52 |
+
# python3 -c "from utils.google_utils import *; gdrive_download('1n_oKgR81BJtqk75b00eAjdv03qVCQn2f', 'coco128.zip')" && mv ./coco128 ../
|
53 |
|
54 |
- name: Tests
|
55 |
run: |
|
56 |
for x in yolov5s yolov5m yolov5l yolov5x # models
|
57 |
do
|
58 |
di=cpu # inference devices
|
59 |
+
# train
|
60 |
+
python train.py --weights $x.pt --cfg $x.yaml --epochs 3 --img 320 --device $di --batch-size 2
|
61 |
+
# detect official
|
62 |
+
python detect.py --weights $x.pt --device $di --batch-size 2
|
63 |
+
# detect custom
|
64 |
+
python detect.py --weights runs/exp0/weights/last.pt --device $di --batch-size 2
|
65 |
+
# test official
|
66 |
+
python test.py --weights $x.pt --device $di --batch-size 2
|
67 |
+
# test custom
|
68 |
+
python test.py --weights runs/exp0/weights/last.pt --device $di --batch-size 2
|
69 |
+
# inspect
|
70 |
+
python models/yolo.py --cfg $x.yaml
|
71 |
+
# export
|
72 |
+
python models/export.py --weights $x.pt --img 640 --batch 1
|
73 |
done
|
74 |
shell: bash
|