Comments (7)
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.
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.
Do you mind sharing the Colab notebook here so that I can reproduce the error?
from super-resolution.
Thanks a lot!
This is my Colab notebook link:
https://colab.research.google.com/drive/1UtlpG8YCtIouwUT7_e-hNB8G2qg7HTpk
from super-resolution.
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.
from super-resolution.
Thank you so much!
from super-resolution.
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.
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.