Update `nl` after `cutout()` (#5873)

pull/5845/head^2
Glenn Jocher 2021-12-03 15:28:14 +01:00 committed by GitHub
parent 360eec6910
commit d885799c71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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: