Add benchmarks to Docker publish workflow (#3931)

This commit is contained in:
Glenn Jocher 2023-07-25 04:16:02 +02:00 committed by GitHub
parent 2ee147838a
commit 9f5ab67ba2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 54 additions and 43 deletions

View file

@ -109,25 +109,17 @@ jobs:
pip --version
pip list
- name: Benchmark DetectionModel
shell: python
run: |
from ultralytics.utils.benchmarks import benchmark
benchmark(model='path with spaces/${{ matrix.model }}.pt', imgsz=160, half=False, hard_fail=0.26)
shell: bash
run: yolo benchmark model='path with spaces/${{ matrix.model }}.pt' imgsz=160, verbose=0.26
- name: Benchmark SegmentationModel
shell: python
run: |
from ultralytics.utils.benchmarks import benchmark
benchmark(model='path with spaces/${{ matrix.model }}-seg.pt', imgsz=160, half=False, hard_fail=0.30)
shell: bash
run: yolo benchmark model='path with spaces/${{ matrix.model }}-seg.pt' imgsz=160, verbose=0.30
- name: Benchmark ClassificationModel
shell: python
run: |
from ultralytics.utils.benchmarks import benchmark
benchmark(model='path with spaces/${{ matrix.model }}-cls.pt', imgsz=160, half=False, hard_fail=0.36)
shell: bash
run: yolo benchmark model='path with spaces/${{ matrix.model }}-cls.pt' imgsz=160, verbose=0.36
- name: Benchmark PoseModel
shell: python
run: |
from ultralytics.utils.benchmarks import benchmark
benchmark(model='path with spaces/${{ matrix.model }}-pose.pt', imgsz=160, half=False, hard_fail=0.17)
shell: bash
run: yolo benchmark model='path with spaces/${{ matrix.model }}-pose.pt' imgsz=160, verbose=0.17
- name: Benchmark Summary
run: |
cat benchmarks.log