ultralytics 8.0.110
new profile
and fraction
train args (#2880)
This commit is contained in:
@ -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
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user