ultralytics 8.0.110 new profile and fraction train args (#2880)
This commit is contained in:
parent
75012e575e
commit
6bf5000a88
7 changed files with 30 additions and 7 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue