Comments (10)
Please provide details how you loaded the h5 file.
from super-resolution.
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.
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.
Probably you ran into keras-team/keras#11281
from super-resolution.
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.
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.
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.
You're welcome, glad it worked!
from super-resolution.
this helped me too. consider adding keras=2.2.4 as a requirement.
and many thanks for sharing. much appreciated!
from super-resolution.
Sorry but it doesn't work for me to update keras to 2.2.4.
from super-resolution.
Related Issues (20)
- Scale x2
- Progressive training
- The training time of per iteration changes when the batch_size is changed
- A tensorflow error in wdsr
- ValueError: The channel dimension of the inputs should be defined. Found `None`.
- Pre-train model for super-resolution by x2/x3
- PSNR doesn't change on custom dataset
- Transparency not supported
- EDSR implementation is buggy
- Not working on GPU HOT 1
- x1 model?
- AssertionError HOT 3
- ValueError: axes don't match array when loading WDSR pre-trained weights
- How can I run it using distributed trainning?
- How Should I customize data for Custom Dataset Training? HOT 2
- How should I create caches file? HOT 1
- How to plot train vs. val loss over epochs
- Weight normalization for tf versions that are incompatible with tfa HOT 2
- missing evaluation file
- weird ouput on pre-trained weights HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from super-resolution.