Git Product home page Git Product logo

Comments (10)

krasserm avatar krasserm commented on May 29, 2024

Please provide details how you loaded the h5 file.

from super-resolution.

leviome avatar leviome commented on May 29, 2024

python demo.py -i ./demo -o ./output --model ./output/20181204-230641/models/epoch-300-psnr-37.7157.h5
'epoch-300-psnr-37.7157.h5' is the new h5 file. And,
python bench.py -i ./output/20181204-230641/models -o bench.json had the same error information.

from super-resolution.

krasserm avatar krasserm commented on May 29, 2024

I'm afraid I cannot reproduce your problem i.e. the commands you provided work as expected in my environment. What versions of Keras and Tensorflow do you use?

from super-resolution.

krasserm avatar krasserm commented on May 29, 2024

Probably you ran into keras-team/keras#11281

from super-resolution.

leviome avatar leviome commented on May 29, 2024

tensorflow==1.9.0
tensorflow-gpu==1.9.0
keras==2.2.0
I upgraded keras version to 2.2.4, the error still existed.
may I know your version of tf and keras

from super-resolution.

krasserm avatar krasserm commented on May 29, 2024

You will need to re-train the model as the h5 files have been written with the older Keras version. For a quick test, can you please train the model again for only 1 epoch and then use the generated h5 file with the demo? This should work now. I'm using Keras 2.2.4 and tested with Tensorflow 1.10 and 1.12.

from super-resolution.

leviome avatar leviome commented on May 29, 2024

thanks a lot!
I retrained it with keras 2.2.4, and the new model is available for demo.py.
Your suggestions helped much!

from super-resolution.

krasserm avatar krasserm commented on May 29, 2024

You're welcome, glad it worked!

from super-resolution.

ink1 avatar ink1 commented on May 29, 2024

this helped me too. consider adding keras=2.2.4 as a requirement.
and many thanks for sharing. much appreciated!

from super-resolution.

ngonthier avatar ngonthier commented on May 29, 2024

Sorry but it doesn't work for me to update keras to 2.2.4.

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.