Skip to content

Instantly share code, notes, and snippets.

@ogyalcin
Created September 12, 2020 20:13
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ogyalcin/404c5ddb5cc94f7191b9f790f9a90e1d to your computer and use it in GitHub Desktop.
n = 5
plt.figure(figsize=(20, 8))
plt.gray()
for i in range(n):
ax = plt.subplot(2, n, i + 1)
plt.title("original", size=20)
plt.imshow(tf.squeeze(x_test[i]))
plt.gray()
bx = plt.subplot(2, n, n+ i + 1)
plt.title("original + noise", size=20)
plt.imshow(tf.squeeze(x_test_noisy[i]))
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment