Merge remote-tracking branch 'origin/master'
Browse files
.github/workflows/ci-testing.yml
CHANGED
@@ -10,9 +10,9 @@ jobs:
|
|
10 |
strategy:
|
11 |
fail-fast: false
|
12 |
matrix:
|
13 |
-
os: [ubuntu-latest]
|
14 |
python-version: [3.8]
|
15 |
-
|
16 |
|
17 |
# Timeout: https://stackoverflow.com/a/59076067/4521646
|
18 |
timeout-minutes: 50
|
@@ -60,14 +60,14 @@ jobs:
|
|
60 |
di=cpu # inference devices # define device
|
61 |
|
62 |
# train
|
63 |
-
python train.py --img 256 --batch 8 --weights weights/${{ matrix.
|
64 |
# detect
|
65 |
-
python detect.py --weights weights/${{ matrix.
|
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.
|
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.
|
72 |
-
python models/export.py --img 256 --batch 1 --weights weights/${{ matrix.
|
73 |
shell: bash
|
|
|
10 |
strategy:
|
11 |
fail-fast: false
|
12 |
matrix:
|
13 |
+
os: [ubuntu-latest] # [ubuntu-latest, macos-latest, windows-latest]
|
14 |
python-version: [3.8]
|
15 |
+
model: ['yolov5s', 'yolov5m', 'yolov5l', 'yolov5x'] # models to test
|
16 |
|
17 |
# Timeout: https://stackoverflow.com/a/59076067/4521646
|
18 |
timeout-minutes: 50
|
|
|
60 |
di=cpu # inference devices # define device
|
61 |
|
62 |
# train
|
63 |
+
python train.py --img 256 --batch 8 --weights weights/${{ matrix.model }}.pt --cfg models/${{ matrix.model }}.yaml --epochs 1 --device $di
|
64 |
# detect
|
65 |
+
python detect.py --weights weights/${{ matrix.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.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.model }}.yaml # inspect
|
72 |
+
python models/export.py --img 256 --batch 1 --weights weights/${{ matrix.model }}.pt # export
|
73 |
shell: bash
|