Code Monkey home page Code Monkey logo

Comments (5)

lucidrains avatar lucidrains commented on May 4, 2024

@boya34 it isn't the original image, but the low resolution image being given to the unet. although paper was scant on details on upsampler, any resolution smaller than the low resolution image given to the unet, and the unet would simply learn to downsample

from gigagan-pytorch.

boya34 avatar boya34 commented on May 4, 2024

thank you for your reply, but I still feel a bit confused, let me explain in more detail.
As the paper says, the input image size of unet is 64 pixels, and the output image size is 512 pixels, so in version 0.2.6 the allowable rgb resolutions is [128, 256](bigger than 64 and smaller than 512), while the multiscale_input_resolutions is [64, 32, 16, 8], this mismatching will lead to an error (the related assertion is around line 1841 in gigagan_pytorch.py).
Besides, the rgbs choose the size bigger than original size which is 64 (in unet_upsampler.py), so the rgb_index is [128, 256, 512] , but it should be the same as multiscale_input_resolutions(the related assertion is around line 1627 in gigagan_pytorch.py).
The paper says the generator producing a pyramid {xi}, and x0 is the full image(64 pixels I guess), so I understand the meaning of multiscale_input_resolutions, could you please tell me more about the other two arrays? thanks a lot.

from gigagan-pytorch.

lucidrains avatar lucidrains commented on May 4, 2024

@boya34 you can resolve this error (and perhaps i should auto-resolve it for unet as it is confusing), by setting Discriminator(multiscale_input_resolutions = unet.allowable_rgb_resolutions)

i have also decided to just default to sending the discriminator the low resolution input image (going into the unet) as the lowest resolution rgb always

from gigagan-pytorch.

boya34 avatar boya34 commented on May 4, 2024

@lucidrains I get what you mean, Thank you again!

from gigagan-pytorch.

lucidrains avatar lucidrains commented on May 4, 2024

no problem, happy training!

from gigagan-pytorch.

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.