Merge pull request #85 from xieenze/master

fix a bug of image_list.py
This commit is contained in:
Xiaohang Zhan 2020-12-25 16:16:27 +08:00 committed by GitHub
commit 1e1645ee9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ class ImageList(object):
self.fns, self.labels = zip(*[l.strip().split() for l in lines])
self.labels = [int(l) for l in self.labels]
else:
assert self.return_label is False
# assert self.return_label is False
self.fns = [l.strip() for l in lines]
self.fns = [os.path.join(root, fn) for fn in self.fns]
self.memcached = memcached