mirror of
https://github.com/ultralytics/yolov5.git
synced 2025-06-03 14:49:29 +08:00
Update ci-testing.yml
This commit is contained in:
parent
d78a79bd25
commit
ddb0ec362d
14
.github/workflows/ci-testing.yml
vendored
14
.github/workflows/ci-testing.yml
vendored
@ -11,7 +11,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest] #, macOS-10.15, windows-2019
|
os: [ubuntu-latest] #, macOS-10.15, windows-2019
|
||||||
python-version: [3.7, 3.8]
|
python-version: [3.8]
|
||||||
yolo5-model: ["yolov5s", "yolov5m", "yolov5l", "yolov5x"]
|
yolo5-model: ["yolov5s", "yolov5m", "yolov5l", "yolov5x"]
|
||||||
|
|
||||||
# Timeout: https://stackoverflow.com/a/59076067/4521646
|
# Timeout: https://stackoverflow.com/a/59076067/4521646
|
||||||
@ -60,19 +60,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Tests workflow
|
- name: Tests workflow
|
||||||
run: |
|
run: |
|
||||||
# to run *.py. files in subdirectories
|
export PYTHONPATH="$PWD" # to run *.py. files in subdirectories
|
||||||
export PYTHONPATH="$PWD"
|
di=cpu # inference devices # define device
|
||||||
# define device
|
|
||||||
di=cpu # inference devices
|
|
||||||
# train
|
# train
|
||||||
python train.py --weights weights/${{ matrix.yolo5-model }}.pt --cfg models/${{ matrix.yolo5-model }}.yaml --epochs 1 --img 320 --device $di --batch-size 8
|
python train.py --weights weights/${{ matrix.yolo5-model }}.pt --cfg models/${{ matrix.yolo5-model }}.yaml --epochs 1 --img 320 --device $di --batch-size 8
|
||||||
# detect official
|
# detect
|
||||||
python detect.py --weights weights/${{ matrix.yolo5-model }}.pt --device $di
|
python detect.py --weights weights/${{ matrix.yolo5-model }}.pt --device $di
|
||||||
# detect custom
|
|
||||||
python detect.py --weights runs/exp0/weights/last.pt --device $di
|
python detect.py --weights runs/exp0/weights/last.pt --device $di
|
||||||
# test official
|
# test
|
||||||
python test.py --weights weights/${{ matrix.yolo5-model }}.pt --device $di --batch 8
|
python test.py --weights weights/${{ matrix.yolo5-model }}.pt --device $di --batch 8
|
||||||
# test custom
|
|
||||||
python test.py --weights runs/exp0/weights/last.pt --device $di --batch 8
|
python test.py --weights runs/exp0/weights/last.pt --device $di --batch 8
|
||||||
# inspect
|
# inspect
|
||||||
python models/yolo.py --cfg models/${{ matrix.yolo5-model }}.yaml
|
python models/yolo.py --cfg models/${{ matrix.yolo5-model }}.yaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user