Update icartoon_dataset.py

pull/830/head
Bin Lu 2021-06-11 10:19:58 +08:00 committed by GitHub
parent c0af015025
commit 3a2f97a911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -29,10 +29,6 @@ class ICartoonDataset(CommonDataset):
with open(self._cls_path) as fd:
lines = fd.readlines()
if seed is not None:
np.random.RandomState(seed).shuffle(lines)
else:
np.random.shuffle(lines)
for l in lines:
l = l.strip().split("\t")
self.images.append(os.path.join(self._img_root, l[0]))