Skip to content

Commit

Permalink
--single-cls segments fix (ultralytics#10260)
Browse files Browse the repository at this point in the history
--single-cls segments fix

May resolve ultralytics#10230

Signed-off-by: Glenn Jocher <[email protected]>

Signed-off-by: Glenn Jocher <[email protected]>
  • Loading branch information
glenn-jocher authored Nov 22, 2022
1 parent 915bbf2 commit b32f67f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions utils/dataloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,6 @@ def __init__(self,
self.segments[i] = segment[j]
if single_cls: # single-class training, merge all classes into 0
self.labels[i][:, 0] = 0
if segment:
self.segments[i][:, 0] = 0

# Rectangular Training
if self.rect:
Expand Down

0 comments on commit b32f67f

Please sign in to comment.