GithubHelp home page GithubHelp logo

Comments (10)

surajpaib avatar surajpaib commented on May 26, 2024 1

Took a look at it and yeah makes sense. I'd suggest adding out_channels with a default of 1 and then in_channels as well, rather than hard coding out channels to one.

@cnmy-ro Time for your first PR to master I'd say

from ganslate.

ibro45 avatar ibro45 commented on May 26, 2024

ah fuck that's true, i messed it up, sorry... @surajpaib important for your current experiments.

from ganslate.

ibro45 avatar ibro45 commented on May 26, 2024

where do you think having patchgan with out channels different than 1 would be useful? i think it should always be one, no?

from ganslate.

cnmy-ro avatar cnmy-ro commented on May 26, 2024

I think it's always 1, as well. Just checked the paper too. As I understood, a regular D outputs just a single scalar probability, but PatchGAN outputs one for each spatial patch of the input. This spatial patch may or maynot contain multiple channels

from ganslate.

cnmy-ro avatar cnmy-ro commented on May 26, 2024

I'll implement the new dataset and create a PR by tonight. Was just testing things in a Colab notebook (for which I took the Unet2D and PatchGAN2D code from midaGAN) coz don't wanna waste Aachen Cluster's compute

from ganslate.

surajpaib avatar surajpaib commented on May 26, 2024

Yeaah didn't realize it affected my experiments since its a no break bug. It's now computing LS on 3 channel output maps, interesting. I wonder how much it affects things

where do you think having patchgan with out channels different than 1 would be useful? i think it should always be one, no?

I think its better to define it as a parameter to make things more explicit. Just a suggestion though ofcourse.

from ganslate.

surajpaib avatar surajpaib commented on May 26, 2024

Good catch @cnmy-ro

from ganslate.

ibro45 avatar ibro45 commented on May 26, 2024

Yeah, great catch!

from ganslate.

cnmy-ro avatar cnmy-ro commented on May 26, 2024

Thanks! A similar, but different thing - earlier while experimenting with Cityscapes dataset I added an additional parameter "out_channels" for Unet2D and Unet3D. I was trying inputs and outputs having different channels, but out_channels was hard-coded to be equal to in_channels then. I'll create another issue for this.

from ganslate.

cnmy-ro avatar cnmy-ro commented on May 26, 2024

Nevermind with the new issue actually. Just wanted to mention this change

from ganslate.

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.