Browse Source

the value should be a list to unpacking (#688)

5.0
tkianai GitHub 4 years ago
parent
commit
9ae868364a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      utils/datasets.py

+ 1
- 1
utils/datasets.py View File

@@ -457,7 +457,7 @@ class LoadImagesAndLabels(Dataset): # for training/testing
l = np.zeros((0, 5), dtype=np.float32)
x[img] = [l, shape]
except Exception as e:
x[img] = None
x[img] = [None, None]
print('WARNING: %s: %s' % (img, e))

x['hash'] = get_hash(self.label_files + self.img_files)

Loading…
Cancel
Save