JirkaB commited on
Commit
3bf77ca
·
1 Parent(s): 613b9d6

lower batch-size

Browse files
Files changed (1) hide show
  1. .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
- - 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
- python train.py --weights $x.pt --cfg $x.yaml --epochs 3 --img 320 --device $di # train
60
- python detect.py --weights $x.pt --device $di # detect official
61
- python detect.py --weights runs/exp0/weights/last.pt --device $di # detect custom
62
- python test.py --weights $x.pt --device $di # test official
63
- python test.py --weights runs/exp0/weights/last.pt --device $di # test custom
64
- python models/yolo.py --cfg $x.yaml # inspect
65
- python models/export.py --weights $x.pt --img 640 --batch 1 # export
 
 
 
 
 
 
 
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