Update nl after cutout() (#5873)
This commit is contained in:
1 parent
360eec6910
commit
d885799c71
1 file changed
+1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user