Git Product home page Git Product logo

Comments (5)

sefibk avatar sefibk commented on August 11, 2024

Hi @Syllables01,
Not sure I follow so LMK if I missed the point.

  1. The Generator has 1 convolution layer with stride 2 and all the others have no stride (=1) ==> The image is downscaled by 2 (except for boundaries effects but they should be minor). I don't understand how you get such a small image. What happens for an image from the dataset (~1024x1024) ?
  2. WDYM by

The output size of Generator is 32*32

Are you referring to the image or the kernel?

from kernelgan.

ArsenalCheng avatar ArsenalCheng commented on August 11, 2024

I mean that as for the kernel generator, it should imitate downscale X2. However, in the original code, when sending input image of shape 6464, the shape of the kernel generator is not 3232. Should I alter padding so that the kernel generator imitates downscale X2?

from kernelgan.

sefibk avatar sefibk commented on August 11, 2024

No!
The Kernel is independent of the image size.
The kernel is the function that downscales the image - it convolves the image and since it does it with a stride, the resulting image is smaller.
You chose how big of a kernel you want. Previous research shows that 13x13 captures most of the downscaling effect, in scale factor 2, so that is the default (physically, the kernel is large but mathematically - 13x13 should suffice)

from kernelgan.

ArsenalCheng avatar ArsenalCheng commented on August 11, 2024

Thanks.
I know that the Kernel is independent of the image size. The function "train" in train.py estimates the image-specific "kernel" by chosen patches. However, when sending an 6464 patch into the downscale generator, the output size is not 3232. If the generator imitates the downscaling operation by the factor 2, why does this situation happen?
Looking forward to your reply!

from kernelgan.

sefibk avatar sefibk commented on August 11, 2024

If you are referring to the training phase - as far as I remember, it trains on a crop and not the entire image, to reduce runtime (and since it doesn't need such a large amount of patches for each forward-backward step).
But you should verify what I said in the code

from kernelgan.

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.