Git Product home page Git Product logo

Comments (7)

krasserm avatar krasserm commented on May 29, 2024

I cannot reproduce that. Please provide more details:

  • which notebook have you used for running the example? If you have used a custom notebook/script please attach it (wonder if you have disabled eager execution).
  • list of installed packages in your environment.

from super-resolution.

ShaniaShan avatar ShaniaShan commented on May 29, 2024

Thank Mr. Krasser for your response. I ran the EDSR example with pre-trained weights by using Google Colab. I followed your given codes:

from model import resolve_single
from model.edsr import edsr
from utils import load_image, plot_sample

model = edsr(scale=4, num_res_blocks=16)
model.load_weights('weights/edsr-16-x4/weights.h5')

lr = load_image('demo/0851x4-crop.png')
sr = resolve_single(model, lr)

plot_sample(lr, sr)

When I ran the example, I got the errors as the following:
NotImplementedError Traceback (most recent call last)
in ()
10 #tf.dtypes.cast(sr, tf.float32)
11 sr = resolve_single(model, lr)
---> 12 plot_sample(lr,sr)
13


8 frames


/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/ops.py in array(self)
734 def array(self):
735 raise NotImplementedError("Cannot convert a symbolic Tensor ({}) to a numpy"
--> 736 " array.".format(self.name))
737
738 def len(self):

NotImplementedError: Cannot convert a symbolic Tensor (strided_slice_1:0) to a numpy array.

from super-resolution.

krasserm avatar krasserm commented on May 29, 2024

Do you mind sharing the Colab notebook here so that I can reproduce the error?

from super-resolution.

ShaniaShan avatar ShaniaShan commented on May 29, 2024

Thanks a lot!
This is my Colab notebook link:
https://colab.research.google.com/drive/1UtlpG8YCtIouwUT7_e-hNB8G2qg7HTpk

from super-resolution.

krasserm avatar krasserm commented on May 29, 2024

It seems you're using the default Tensorflow version in Colab which is 1.x. This project requires 2.0 though. You can enable Tensorflow 2.0 with %tensorflow_version 2.x in the notebook. I just tried that with your notebook (after some minor changes) and it works as expected.

sr

from super-resolution.

ShaniaShan avatar ShaniaShan commented on May 29, 2024

Thank you so much!

from super-resolution.

sandhya9173 avatar sandhya9173 commented on May 29, 2024

Hi

I want some information on how to generate a model GAN network you save directly generator.h5, I am sending one image that much bad quality also I want clear image please can you help in this process, I want some information, it's important for me.

e13617_0bcfe97a906147cbac3b94861013d875_mv2

from super-resolution.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.