Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

11-AE/main.py : fix typo in the comparative plot display calc which makes the numbers fuzzy #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added 11-AE/images/ae_reconstructed_epoch_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 11-AE/images/ae_reconstructed_epoch_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 11-AE/images/ae_reconstructed_epoch_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 11-AE/images/ae_reconstructed_epoch_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 11-AE/images/ae_reconstructed_epoch_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed 11-AE/images/vae_reconstructed_epoch_1.png
Binary file not shown.
Binary file removed 11-AE/images/vae_reconstructed_epoch_2.png
Binary file not shown.
Binary file removed 11-AE/images/vae_reconstructed_epoch_3.png
Binary file not shown.
Binary file removed 11-AE/images/vae_reconstructed_epoch_4.png
Binary file not shown.
Binary file removed 11-AE/images/vae_reconstructed_epoch_5.png
Binary file not shown.
6 changes: 3 additions & 3 deletions 11-AE/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ def call(self, inputs, training=None, mask=None):
out = tf.nn.sigmoid(out_logits) # out is just the logits, use sigmoid
out = tf.reshape(out, [-1, 28, 28]).numpy() * 255

x = tf.reshape(x[:batch_size // 2], [-1, 28, 28])
x = tf.reshape(x[:batch_size // 2], [-1, 28, 28]).numpy() * 255

x_concat = tf.concat([x, out], axis=0).numpy() * 255.
x_concat = tf.concat([x, out], axis=0).numpy()
x_concat = x_concat.astype(np.uint8)

index = 0
Expand All @@ -132,7 +132,7 @@ def call(self, inputs, training=None, mask=None):
new_im.paste(im, (i, j))
index += 1

new_im.save('images/vae_reconstructed_epoch_%d.png' % (epoch + 1))
new_im.save('images/ae_reconstructed_epoch_%d.png' % (epoch + 1))
plt.imshow(np.asarray(new_im))
plt.show()
print('New images saved !')
Expand Down