glenn-jocher
commited on
Commit
•
ddb0ec3
1
Parent(s):
d78a79b
Update ci-testing.yml
Browse files
.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
|
@@ -60,19 +60,15 @@ jobs:
|
|
60 |
|
61 |
- name: Tests workflow
|
62 |
run: |
|
63 |
-
# to run *.py. files in subdirectories
|
64 |
-
|
65 |
-
# define device
|
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 --img 320 --device $di --batch-size 8
|
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 --batch 8
|
75 |
-
# test custom
|
76 |
python test.py --weights runs/exp0/weights/last.pt --device $di --batch 8
|
77 |
# inspect
|
78 |
python models/yolo.py --cfg models/${{ matrix.yolo5-model }}.yaml
|
|
|
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
|
|
|
60 |
|
61 |
- name: Tests workflow
|
62 |
run: |
|
63 |
+
export PYTHONPATH="$PWD" # to run *.py. files in subdirectories
|
64 |
+
di=cpu # inference devices # define device
|
|
|
|
|
65 |
# train
|
66 |
python train.py --weights weights/${{ matrix.yolo5-model }}.pt --cfg models/${{ matrix.yolo5-model }}.yaml --epochs 1 --img 320 --device $di --batch-size 8
|
67 |
+
# detect
|
68 |
python detect.py --weights weights/${{ matrix.yolo5-model }}.pt --device $di
|
|
|
69 |
python detect.py --weights runs/exp0/weights/last.pt --device $di
|
70 |
+
# test
|
71 |
python test.py --weights weights/${{ matrix.yolo5-model }}.pt --device $di --batch 8
|
|
|
72 |
python test.py --weights runs/exp0/weights/last.pt --device $di --batch 8
|
73 |
# inspect
|
74 |
python models/yolo.py --cfg models/${{ matrix.yolo5-model }}.yaml
|