Update `nl` after `cutout()` (#5873)
parent
360eec6910
commit
d885799c71
|
@ -611,6 +611,7 @@ class LoadImagesAndLabels(Dataset):
|
|||
|
||||
# Cutouts
|
||||
# labels = cutout(img, labels, p=0.5)
|
||||
# nl = len(labels) # update after cutout
|
||||
|
||||
labels_out = torch.zeros((nl, 6))
|
||||
if nl:
|
||||
|
|
Loading…
Reference in New Issue