mirror of
https://github.com/open-mmlab/mmselfsup.git
synced 2025-06-03 14:59:38 +08:00
commit
1e1645ee9c
@ -17,7 +17,7 @@ class ImageList(object):
|
|||||||
self.fns, self.labels = zip(*[l.strip().split() for l in lines])
|
self.fns, self.labels = zip(*[l.strip().split() for l in lines])
|
||||||
self.labels = [int(l) for l in self.labels]
|
self.labels = [int(l) for l in self.labels]
|
||||||
else:
|
else:
|
||||||
assert self.return_label is False
|
# assert self.return_label is False
|
||||||
self.fns = [l.strip() for l in lines]
|
self.fns = [l.strip() for l in lines]
|
||||||
self.fns = [os.path.join(root, fn) for fn in self.fns]
|
self.fns = [os.path.join(root, fn) for fn in self.fns]
|
||||||
self.memcached = memcached
|
self.memcached = memcached
|
||||||
|
Loading…
x
Reference in New Issue
Block a user