Print pictures

This commit is contained in:
Shangtong Zhang committed 2017-12-19 22:09:35 -07:00
1 parent 13533ab2fe
commit 040df4efcf
4 files changed
+147 -47

No files matched your search

+5
View File
@@ -84,3 +84,8 @@ class Batcher:
self.batch_start = self.batch_end
self.batch_end = min(self.batch_start + self.batch_size, self.num_entries)
return batch
def shuffle(self):
indices = np.arange(self.num_entries)
np.random.shuffle(indices)
self.data = [d[indices] for d in self.data]