fix dataset (#167)

This commit is contained in:
Laughing 2023-01-10 00:25:20 +08:00 committed by GitHub
parent b84ed678de
commit 5e290e0d28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ class BaseDataset(Dataset):
if self.single_cls:
self.update_labels(include_class=[])
self.ni = len(self.im_files)
self.ni = len(self.labels)
# rect stuff
self.rect = rect