Giter Club home page Giter Club logo

Comments (4)

hellojialee avatar hellojialee commented on July 27, 2024

I have run this code but the result seems incorrect.

from keras-gan.

eriklindernoren avatar eriklindernoren commented on July 27, 2024

Yeah, I wrote about this in the README.

"In this implementation I have also decided to combine the adversarial loss with an l2 loss which measures the generated image's similarity to the original images. These losses are weighted similar to the approach described by Pathak et al. (2016)
in their paper Context Encoders: Feature Learning by Inpainting."

Adding the l2 loss helps the model converge more quickly. It's possible to get convergence without it too of course, but it takes way longer time.

from keras-gan.

hellojialee avatar hellojialee commented on July 27, 2024

Thank you for you replying. When I trained the ccgan model, the loss of G and loss of D remain nan like this:

168 [D loss: nan, acc: 100.00%, op_acc: 34.38%] [G loss: 64382.972656, mse: 64447.417969]

and
'
label = Dense(self.num_classes + 1, activation="softmax")(features)
'
why the output is num_classse + 1?
Regards!

from keras-gan.

hellojialee avatar hellojialee commented on July 27, 2024

Ok, I have found the problem. #2

from keras-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.