Comments (11)
@riokt I solved this problem, please check the SRGAN implementation https://github.com/zsdonghao/SRGAN
from subpixel.
@SystemErrorWang please update your TensorLayer version, it will support dynamic image size.
from subpixel.
I got same problem.
from subpixel.
@zsdonghao Nice. Thank you
from subpixel.
@zsdonghao Hello, I tried to contact you through tencent QQ, but mention again here if you didn't see it. Hope you can give me some help, thanks.
I tried to check your tensorlayer code but failed to figure out how you solve this problem. The subpixel conv2d is not capable of dealing with placeholder with shape [batch_size, None, None, 3] as tf.reshape is used, and I also tried to save and restore network parameters in npz file format, but tensorflow still give me this: "You must feed a value for placeholder tensor 'Placeholder' with dtype float and shape [?,48,48,3]". However, the tensorlayer based SRGAN code can test on a whole DIV2K image.
So I would like to know what method you used in tensorlayer that solved this problem.
from subpixel.
@zsdonghao I tried the tensorlayer script and it succeeded, but still I would like to know if there is any method to deal with it in native tensorflow, thanks.
from subpixel.
@SystemErrorWang hi, you can just simply copy the core codes from TensorLayer's layer.
from subpixel.
@zsdonghao Thank, I solved this problem
@riokt You can simply use tf.shape(X) to substitute X.get_shape() in PS() function, and set input placeholder to be shaped [None, None, None, 3]
from subpixel.
@zsdonghao @SystemErrorWang
Hi, good day. As the implementation of Tensorlayer, if I understand correctly, the function of_phase_shift() is equal to "depth_to_space"?
https://www.tensorflow.org/api_docs/python/tf/nn/depth_to_space
from subpixel.
@lhanappa I didn't test this function myself, but I think they are theorically the same. Guess you can do some experiments.
from subpixel.
@SystemErrorWang Thanks, yes, I already did.
"depth_to_space" and "space_to_depth" are two reciprocal functions for expanding/compressing channels in native tensorflow.
from subpixel.
Related Issues (20)
- Implementation for keras HOT 1
- Testing our dataset HOT 1
- Magic number
- Not work on tensorflow 1.3 HOT 2
- TypeError: Input 'split_dim' of 'Split' Op has type float32 that does not match expected type of int32. HOT 3
- problem when run main.py with mnist, Is there anyone have the same problem?or you know how this happen?please give me some advice!Thanks
- Query trained model
- Testing the model
- Please confirm PS(I,r) HOT 1
- How subpixel handle odd image size?
- What to do in grayscale images?
- ###########
- Keras SubPixel 3D
- Pre -Trained model HOT 1
- Evaluation HOT 1
- ValueError: Shape (32, 64, 32, 4, 4) must have rank 0
- the project requestments.txt is needed.
- Is this the same as tf depth_to_space?
- the first paper proposed subpixel convolution?
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 subpixel.