glenn-jocher
commited on
Merge remote-tracking branch 'origin/master'
Browse files- .github/workflows/ci-testing.yml +12 -20
.github/workflows/ci-testing.yml
CHANGED
@@ -11,7 +11,7 @@ jobs:
|
|
11 |
fail-fast: false
|
12 |
matrix:
|
13 |
os: [ubuntu-latest] #, macOS-10.15, windows-2019
|
14 |
-
python-version: [3.
|
15 |
yolo5-model: ["yolov5s", "yolov5m", "yolov5l", "yolov5x"]
|
16 |
|
17 |
# Timeout: https://stackoverflow.com/a/59076067/4521646
|
@@ -54,28 +54,20 @@ jobs:
|
|
54 |
python -c "from utils.google_utils import * ; gdrive_download('1n_oKgR81BJtqk75b00eAjdv03qVCQn2f', 'coco128.zip')"
|
55 |
mv ./coco128 ../
|
56 |
|
57 |
-
- name: Download weights
|
58 |
-
run: |
|
59 |
-
bash weights/download_weights.sh
|
60 |
-
|
61 |
- name: Tests workflow
|
62 |
run: |
|
63 |
-
# to run *.py. files in subdirectories
|
64 |
-
|
65 |
-
|
66 |
-
di=cpu # inference devices
|
67 |
# train
|
68 |
-
python train.py --weights weights/${{ matrix.yolo5-model }}.pt --cfg models/${{ matrix.yolo5-model }}.yaml --epochs 1 --
|
69 |
-
# detect
|
70 |
python detect.py --weights weights/${{ matrix.yolo5-model }}.pt --device $di
|
71 |
-
# detect custom
|
72 |
python detect.py --weights runs/exp0/weights/last.pt --device $di
|
73 |
-
# test
|
74 |
-
python test.py --weights weights/${{ matrix.yolo5-model }}.pt --device $di
|
75 |
-
|
76 |
-
|
77 |
-
# inspect
|
78 |
-
python models/
|
79 |
-
# export
|
80 |
-
python models/export.py --weights weights/${{ matrix.yolo5-model }}.pt --img 640 --batch 1
|
81 |
shell: bash
|
|
|
11 |
fail-fast: false
|
12 |
matrix:
|
13 |
os: [ubuntu-latest] #, macOS-10.15, windows-2019
|
14 |
+
python-version: [3.8]
|
15 |
yolo5-model: ["yolov5s", "yolov5m", "yolov5l", "yolov5x"]
|
16 |
|
17 |
# Timeout: https://stackoverflow.com/a/59076067/4521646
|
|
|
54 |
python -c "from utils.google_utils import * ; gdrive_download('1n_oKgR81BJtqk75b00eAjdv03qVCQn2f', 'coco128.zip')"
|
55 |
mv ./coco128 ../
|
56 |
|
|
|
|
|
|
|
|
|
57 |
- name: Tests workflow
|
58 |
run: |
|
59 |
+
export PYTHONPATH="$PWD" # to run *.py. files in subdirectories
|
60 |
+
di=cpu # inference devices # define device
|
61 |
+
|
|
|
62 |
# train
|
63 |
+
python train.py --img 256 --batch 8 --weights weights/${{ matrix.yolo5-model }}.pt --cfg models/${{ matrix.yolo5-model }}.yaml --epochs 1 --device $di
|
64 |
+
# detect
|
65 |
python detect.py --weights weights/${{ matrix.yolo5-model }}.pt --device $di
|
|
|
66 |
python detect.py --weights runs/exp0/weights/last.pt --device $di
|
67 |
+
# test
|
68 |
+
python test.py --img 256 --batch 8 --weights weights/${{ matrix.yolo5-model }}.pt --device $di
|
69 |
+
python test.py --img 256 --batch 8 --weights runs/exp0/weights/last.pt --device $di
|
70 |
+
|
71 |
+
python models/yolo.py --cfg models/${{ matrix.yolo5-model }}.yaml # inspect
|
72 |
+
python models/export.py --img 256 --batch 1 --weights weights/${{ matrix.yolo5-model }}.pt # export
|
|
|
|
|
73 |
shell: bash
|