Skip to content

Commit 134f9f0

Browse files
committed
remove unused code detected by #21
1 parent 76ef910 commit 134f9f0

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

batches.py

-6
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@ def load_img(path, target_size):
5252
return x
5353

5454

55-
def save_image(X, name):
56-
"""Save image as png."""
57-
fname = os.path.join(out_dir, name + ".png")
58-
PIL.Image.fromarray(X).save(fname)
59-
60-
6155
def preprocess(x):
6256
"""From uint8 image to [-1,1]."""
6357
return np.cast[np.float32](x / 127.5 - 1.0)

0 commit comments

Comments
 (0)