ultralytics 8.0.110 new profile and fraction train args (#2880)

This commit is contained in:
Glenn Jocher
2023-05-28 18:20:41 +02:00
committed by GitHub
parent 75012e575e
commit 6bf5000a88
7 changed files with 30 additions and 7 deletions

View File

@ -1,6 +1,6 @@
# Ultralytics YOLO 🚀, AGPL-3.0 license
__version__ = '8.0.109'
__version__ = '8.0.110'
from ultralytics.hub import start
from ultralytics.vit.rtdetr import RTDETR

View File

@ -778,11 +778,8 @@ def v8_transforms(dataset, imgsz, hyp):
if flip_idx is None and hyp.fliplr > 0.0:
hyp.fliplr = 0.0
LOGGER.warning("WARNING ⚠️ No 'flip_idx' array defined in data.yaml, setting augmentation 'fliplr=0.0'")
elif flip_idx:
if len(flip_idx) != kpt_shape[0]:
raise ValueError(f'data.yaml flip_idx={flip_idx} length must be equal to kpt_shape[0]={kpt_shape[0]}')
elif flip_idx[0] != 0:
raise ValueError(f'data.yaml flip_idx={flip_idx} must be zero-index (start from 0)')
elif flip_idx and (len(flip_idx) != kpt_shape[0]):
raise ValueError(f'data.yaml flip_idx={flip_idx} length must be equal to kpt_shape[0]={kpt_shape[0]}')
return Compose([
pre_transform,