Skip to content

Commit 9ae8683

Browse files
authored
the value should be a list to unpacking (#688)
1 parent 8e5c665 commit 9ae8683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/datasets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def cache_labels(self, path='labels.cache'):
457457
l = np.zeros((0, 5), dtype=np.float32)
458458
x[img] = [l, shape]
459459
except Exception as e:
460-
x[img] = None
460+
x[img] = [None, None]
461461
print('WARNING: %s: %s' % (img, e))
462462

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

0 commit comments

Comments
 (0)