mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-23 21:44:22 +08:00
Update TASK2DATA defaults to COCO8 (#3603)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
ff90081102
commit
e97958ef6f
6
.github/workflows/ci.yaml
vendored
6
.github/workflows/ci.yaml
vendored
@ -112,17 +112,17 @@ jobs:
|
|||||||
shell: python
|
shell: python
|
||||||
run: |
|
run: |
|
||||||
from ultralytics.yolo.utils.benchmarks import benchmark
|
from ultralytics.yolo.utils.benchmarks import benchmark
|
||||||
benchmark(model='${{ matrix.model }}.pt', imgsz=160, half=False, hard_fail=0.20)
|
benchmark(model='${{ matrix.model }}.pt', imgsz=160, half=False, hard_fail=0.26)
|
||||||
- name: Benchmark SegmentationModel
|
- name: Benchmark SegmentationModel
|
||||||
shell: python
|
shell: python
|
||||||
run: |
|
run: |
|
||||||
from ultralytics.yolo.utils.benchmarks import benchmark
|
from ultralytics.yolo.utils.benchmarks import benchmark
|
||||||
benchmark(model='${{ matrix.model }}-seg.pt', imgsz=160, half=False, hard_fail=0.14)
|
benchmark(model='${{ matrix.model }}-seg.pt', imgsz=160, half=False, hard_fail=0.30)
|
||||||
- name: Benchmark ClassificationModel
|
- name: Benchmark ClassificationModel
|
||||||
shell: python
|
shell: python
|
||||||
run: |
|
run: |
|
||||||
from ultralytics.yolo.utils.benchmarks import benchmark
|
from ultralytics.yolo.utils.benchmarks import benchmark
|
||||||
benchmark(model='${{ matrix.model }}-cls.pt', imgsz=160, half=False, hard_fail=0.35)
|
benchmark(model='${{ matrix.model }}-cls.pt', imgsz=160, half=False, hard_fail=0.36)
|
||||||
- name: Benchmark PoseModel
|
- name: Benchmark PoseModel
|
||||||
shell: python
|
shell: python
|
||||||
run: |
|
run: |
|
||||||
|
@ -16,11 +16,7 @@ from ultralytics.yolo.utils import (DEFAULT_CFG, DEFAULT_CFG_DICT, DEFAULT_CFG_P
|
|||||||
# Define valid tasks and modes
|
# Define valid tasks and modes
|
||||||
MODES = 'train', 'val', 'predict', 'export', 'track', 'benchmark'
|
MODES = 'train', 'val', 'predict', 'export', 'track', 'benchmark'
|
||||||
TASKS = 'detect', 'segment', 'classify', 'pose'
|
TASKS = 'detect', 'segment', 'classify', 'pose'
|
||||||
TASK2DATA = {
|
TASK2DATA = {'detect': 'coco8.yaml', 'segment': 'coco8-seg.yaml', 'classify': 'imagenet100', 'pose': 'coco8-pose.yaml'}
|
||||||
'detect': 'coco128.yaml',
|
|
||||||
'segment': 'coco128-seg.yaml',
|
|
||||||
'classify': 'imagenet100',
|
|
||||||
'pose': 'coco8-pose.yaml'}
|
|
||||||
TASK2MODEL = {
|
TASK2MODEL = {
|
||||||
'detect': 'yolov8n.pt',
|
'detect': 'yolov8n.pt',
|
||||||
'segment': 'yolov8n-seg.pt',
|
'segment': 'yolov8n-seg.pt',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user