Skip to content

Instantly share code, notes, and snippets.

@uiur
Created August 2, 2016 11:51
Show Gist options
  • Save uiur/ece9986429167ee0cc30edf87a43211d to your computer and use it in GitHub Desktop.
Save uiur/ece9986429167ee0cc30edf87a43211d to your computer and use it in GitHub Desktop.
stack images
size = (10, 10)
imgs = imgs[:size[0] * size[1]].reshape(size[0], size[1], 28, 28)
result = np.vstack(tuple([np.hstack(tuple(img)) for img in imgs]))
imsave('a.png', result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment