Giter Site home page Giter Site logo

Comments (9)

kongj5 avatar kongj5 commented on July 20, 2024 1

Sorry, I don't know your email address, mine is [email protected]

from diffusion-gan.

Zhendong-Wang avatar Zhendong-Wang commented on July 20, 2024

We merge the DCGAN/SNGAN into the stylegan2 framework for training. We found t-embedding doesn't influence much about the performance of DCGAN/SNGAN on CIFAR-10. If you want to add the t_embedding, in your case, following the way we did in stylegan2, the t-embedding is concatenated with the image feature after conv layers as follows,

out = self.model(img)
out = torch.cat((out.view(out.shape[0], -1), t_embedding), dim=1)
validity = self.adv_layer(out)

from diffusion-gan.

ariel415el avatar ariel415el commented on July 20, 2024

Oh I see.
Is self.adv_layer a binary linear classifier?

from diffusion-gan.

Zhendong-Wang avatar Zhendong-Wang commented on July 20, 2024

Yes, it is a MLP model but not a binary linear classifier. In our case, the discriminator output the logits while not the probability.

gen_logits = self.run_D(gen_img, gen_c, sync=False)
loss_Gmain = torch.nn.functional.softplus(-gen_logits)  # -log(sigmoid(gen_logits))

If you are interested in playing around on DCGAN, you can send me an email. I will share with you the code for that. The code is not cleaned and mighe be a little messy, lol.

from diffusion-gan.

ariel415el avatar ariel415el commented on July 20, 2024

Thanks, I've sent you a an email to your @columbia.edu address

from diffusion-gan.

Zhendong-Wang avatar Zhendong-Wang commented on July 20, 2024

Sent.

from diffusion-gan.

kongj5 avatar kongj5 commented on July 20, 2024

can you share me a copy of the diffusion training code for DCGAN,

from diffusion-gan.

Zhendong-Wang avatar Zhendong-Wang commented on July 20, 2024

Sure!

from diffusion-gan.

Sarah-2021-scu avatar Sarah-2021-scu commented on July 20, 2024

Hey @Zhendong-Wang, could you please share the code of DCGAN, my email is [email protected].
Thanks in advance

from diffusion-gan.

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.