mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-23 21:44:22 +08:00
Try Apple M1 runners for Tests and Benchmarks CI (#8162)
This commit is contained in:
parent
8a41bed7d0
commit
21d5ebd638
10
.github/workflows/ci.yaml
vendored
10
.github/workflows/ci.yaml
vendored
@ -94,7 +94,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest, macos-14]
|
||||||
python-version: ["3.11"]
|
python-version: ["3.11"]
|
||||||
model: [yolov8n]
|
model: [yolov8n]
|
||||||
steps:
|
steps:
|
||||||
@ -120,16 +120,16 @@ jobs:
|
|||||||
# run: coverage run -a --source=ultralytics -m ultralytics.cfg.__init__ benchmark model='path with spaces/${{ matrix.model }}.pt' imgsz=160 verbose=0.318
|
# run: coverage run -a --source=ultralytics -m ultralytics.cfg.__init__ benchmark model='path with spaces/${{ matrix.model }}.pt' imgsz=160 verbose=0.318
|
||||||
- name: Benchmark SegmentationModel
|
- name: Benchmark SegmentationModel
|
||||||
shell: bash
|
shell: bash
|
||||||
run: coverage run -a --source=ultralytics -m ultralytics.cfg.__init__ benchmark model='path with spaces/${{ matrix.model }}-seg.pt' imgsz=160 verbose=0.286
|
run: coverage run -a --source=ultralytics -m ultralytics.cfg.__init__ benchmark model='path with spaces/${{ matrix.model }}-seg.pt' imgsz=160 verbose=0.281
|
||||||
- name: Benchmark ClassificationModel
|
- name: Benchmark ClassificationModel
|
||||||
shell: bash
|
shell: bash
|
||||||
run: coverage run -a --source=ultralytics -m ultralytics.cfg.__init__ benchmark model='path with spaces/${{ matrix.model }}-cls.pt' imgsz=160 verbose=0.166
|
run: coverage run -a --source=ultralytics -m ultralytics.cfg.__init__ benchmark model='path with spaces/${{ matrix.model }}-cls.pt' imgsz=160 verbose=0.166
|
||||||
- name: Benchmark PoseModel
|
- name: Benchmark PoseModel
|
||||||
shell: bash
|
shell: bash
|
||||||
run: coverage run -a --source=ultralytics -m ultralytics.cfg.__init__ benchmark model='path with spaces/${{ matrix.model }}-pose.pt' imgsz=160 verbose=0.185
|
run: coverage run -a --source=ultralytics -m ultralytics.cfg.__init__ benchmark model='path with spaces/${{ matrix.model }}-pose.pt' imgsz=160 verbose=0.183
|
||||||
- name: Benchmark OBBModel
|
- name: Benchmark OBBModel
|
||||||
shell: bash
|
shell: bash
|
||||||
run: coverage run -a --source=ultralytics -m ultralytics.cfg.__init__ benchmark model='path with spaces/${{ matrix.model }}-obb.pt' imgsz=160 verbose=0.360
|
run: coverage run -a --source=ultralytics -m ultralytics.cfg.__init__ benchmark model='path with spaces/${{ matrix.model }}-obb.pt' imgsz=160 verbose=0.472
|
||||||
- name: Merge Coverage Reports
|
- name: Merge Coverage Reports
|
||||||
run: |
|
run: |
|
||||||
coverage xml -o coverage-benchmarks.xml
|
coverage xml -o coverage-benchmarks.xml
|
||||||
@ -152,7 +152,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest, macos-14]
|
||||||
python-version: ["3.11"]
|
python-version: ["3.11"]
|
||||||
torch: [latest]
|
torch: [latest]
|
||||||
include:
|
include:
|
||||||
|
@ -497,7 +497,7 @@ class Exporter:
|
|||||||
"""
|
"""
|
||||||
YOLOv8 ncnn export using PNNX https://github.com/pnnx/pnnx.
|
YOLOv8 ncnn export using PNNX https://github.com/pnnx/pnnx.
|
||||||
"""
|
"""
|
||||||
check_requirements("git+https://github.com/Tencent/ncnn.git" if ARM64 else "ncnn") # requires ncnn
|
check_requirements("ncnn")
|
||||||
import ncnn # noqa
|
import ncnn # noqa
|
||||||
|
|
||||||
LOGGER.info(f"\n{prefix} starting export with ncnn {ncnn.__version__}...")
|
LOGGER.info(f"\n{prefix} starting export with ncnn {ncnn.__version__}...")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user