You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to run demo for SRGAN in google colab. Since tensorflow version and keras are quite old as it seems, there is some version compatability issue in colab. So, I switched to tensorflow 1.13.1 version.
I tried to run demo for SRGAN in google colab. Since tensorflow version and keras are quite old as it seems, there is some version compatability issue in colab. So, I switched to tensorflow 1.13.1 version.
I found that in older version, to plot the image tensorflow session should be explicitly coded:
https://stackoverflow.com/questions/55315275/why-am-i-getting-typeerror-image-data-cannot-be-converted-to-float
So, I did it as follows:
`import tensorflow
from model import resolve_single
from utils import load_image,plot_sample
pre_generator = generator()
gan_generator = generator()
pre_generator.load_weights('/content/weights/srgan/pre_generator.h5')
gan_generator.load_weights('/content/weights/srgan/gan_generator.h5')
with tensorflow.Session() as sess:
sess.run(tensorflow.global_variables_initializer())
Now, my output is like this::
Can anybody help me understand why is this happening? Thanks.
The text was updated successfully, but these errors were encountered: