Skip to content

Commit

Permalink
the value should be a list to unpacking (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkianai committed Aug 10, 2020
1 parent 8e5c665 commit 9ae8683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def cache_labels(self, path='labels.cache'):
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)
Expand Down

0 comments on commit 9ae8683

Please sign in to comment.