glenn-jocher commited on
Commit
7b0c9be
·
2 Parent(s): b40852d 90e7bfd

Merge remote-tracking branch 'origin/master'

Browse files
Files changed (1) hide show
  1. .github/workflows/ci-testing.yml +7 -7
.github/workflows/ci-testing.yml CHANGED
@@ -10,9 +10,9 @@ jobs:
10
  strategy:
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
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.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
 
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