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

255_256_SRGAN - Conditionally set he image data format to channels_last #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
5 changes: 4 additions & 1 deletion 255_256_SRGAN/SRGAN_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
from keras.layers import UpSampling2D, LeakyReLU, Dense, Input, add
from tqdm import tqdm

# some versions of Tf.keras will need you to configure channels last to make this notebook work
# keras.backend.set_image_data_format('channels_last')

#########################################################################

#Define blocks to build the generator
Expand Down Expand Up @@ -345,4 +348,4 @@ def create_comb(gen_model, disc_model, vgg, lr_ip, hr_ip):
plt.title('Orig. HR image')
plt.imshow(sreeni_hr[0,:,:,:])

plt.show()
plt.show()