Giter Site home page Giter Site logo

Comments (11)

zsdonghao avatar zsdonghao commented on August 26, 2024 1

@riokt I solved this problem, please check the SRGAN implementation https://github.com/zsdonghao/SRGAN

from subpixel.

zsdonghao avatar zsdonghao commented on August 26, 2024 1

@SystemErrorWang please update your TensorLayer version, it will support dynamic image size.

from subpixel.

riokt avatar riokt commented on August 26, 2024

I got same problem.

from subpixel.

riokt avatar riokt commented on August 26, 2024

@zsdonghao Nice. Thank you

from subpixel.

SystemErrorWang avatar SystemErrorWang commented on August 26, 2024

@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.

SystemErrorWang avatar SystemErrorWang commented on August 26, 2024

@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.

zsdonghao avatar zsdonghao commented on August 26, 2024

@SystemErrorWang hi, you can just simply copy the core codes from TensorLayer's layer.

from subpixel.

SystemErrorWang avatar SystemErrorWang commented on August 26, 2024

@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.

lhanappa avatar lhanappa commented on August 26, 2024

@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.

SystemErrorWang avatar SystemErrorWang commented on August 26, 2024

@lhanappa I didn't test this function myself, but I think they are theorically the same. Guess you can do some experiments.

from subpixel.

lhanappa avatar lhanappa commented on August 26, 2024

@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)

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.