Giter Club home page Giter Club logo

Comments (6)

shaohua0116 avatar shaohua0116 commented on May 28, 2024 2

Ideally, the g_loss shouldn't be negative. Can you describe the issue more accurately?

from ssgan-tensorflow.

Jingwen7 avatar Jingwen7 commented on May 28, 2024 1

I also get the negative g_loss when I train.

from ssgan-tensorflow.

howardgriffin avatar howardgriffin commented on May 28, 2024

I also get the negative g_loss when I train mnist dataset,(g_loss is always negative). I have no idea why I got the negtive g_loss

from ssgan-tensorflow.

Timaces avatar Timaces commented on May 28, 2024

I also get the negative g_loss when I train.

from ssgan-tensorflow.

ahuizxc avatar ahuizxc commented on May 28, 2024

I also get the negative g_loss when I train.

I think the g_logloss should be g_loss = tf.reduce_mean(-tf.log(1-d_fake[:, -1]+1e-7))
but not the author's provided, because the d_fake's range is [0-1] and ln(d_fake) is always negative and the weight annealing loss will be zero when the training step is 1500, but when you do the evaluation, you get a positive g_loss because the ann_weight is always 1.
Thanks!

from ssgan-tensorflow.

ahuizxc avatar ahuizxc commented on May 28, 2024

Ideally, the g_loss shouldn't be negative. Can you describe the issue more accurately?

In fact, the g loss will always be negative when the train_step reaches 1500[抠鼻]

from ssgan-tensorflow.

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.