Print pictures

This commit is contained in:
Shangtong Zhang
2017-12-19 22:09:35 -07:00
parent 13533ab2fe
commit 040df4efcf
4 changed files with 147 additions and 47 deletions
+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]