Skip to content

Commit

Permalink
added spacing between visualizations in visualizer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragav Venkatesan committed Mar 3, 2017
1 parent 6a14420 commit 55c68dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions yann/modules/visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def save_images(imgs, prefix, is_color, verbose = 2):
X = curr_image.reshape((curr_image.shape[0],curr_image.shape[1] * \
curr_image.shape[2])),
img_shape = (curr_image.shape[1], curr_image.shape[2]),
tile_spacing = (5,5),
tile_shape = tile_shape ))
if len(I.shape) == 3:
raster.append(rgb2gray(I))
Expand All @@ -87,6 +88,7 @@ def save_images(imgs, prefix, is_color, verbose = 2):
X = curr_image.reshape((curr_image.shape[0],curr_image.shape[1] * \
curr_image.shape[2])),
img_shape = (curr_image.shape[1], curr_image.shape[2]),
tile_spacing = (5,5),
tile_shape = tile_shape )))
assert len(raster[i].shape) == 2
imsave(prefix + str(i) + ".jpg",raster[i], cmap = 'gray')
Expand Down

0 comments on commit 55c68dc

Please sign in to comment.