ultralytics 8.0.50 AMP check and YOLOv5u YAMLs (#1263)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Troy <wudashuo@vip.qq.com> Co-authored-by: Yonghye Kwon <developer.0hye@gmail.com> Co-authored-by: Ayush Chaurasia <ayush.chaurarsia@gmail.com> Co-authored-by: Laughing <61612323+Laughing-q@users.noreply.github.com> Co-authored-by: Huijae Lee <46982469+ZeroAct@users.noreply.github.com>
This commit is contained in:
parent
3861e6c82a
commit
f0d8e4718b
29 changed files with 440 additions and 83 deletions
|
|
@ -539,7 +539,7 @@ class LoadImagesAndLabels(Dataset):
|
|||
j = (label[:, 0:1] == include_class_array).any(1)
|
||||
self.labels[i] = label[j]
|
||||
if segment:
|
||||
self.segments[i] = segment[j]
|
||||
self.segments[i] = [segment[si] for si, idx in enumerate(j) if idx]
|
||||
if single_cls: # single-class training, merge all classes into 0
|
||||
self.labels[i][:, 0] = 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue