Created
May 17, 2020 07:26
-
-
Save gchhablani/20f482e1a334226c4991407ad5a9377a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inp = torch.from_numpy(np.random.normal(0,1,size=(100,64))).to(device).float() | |
temp = ae.decoder(inp) | |
temp = temp.data.reshape(100,1,28,28) | |
grid = torchvision.utils.make_grid(temp,nrow=10) | |
print(grid.shape) | |
plt.imshow(grid.to('cpu').permute(1,2,0)) | |
plt.gcf().set_size_inches(20,10) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment