Git Product home page Git Product logo

Comments (4)

vanhuyz avatar vanhuyz commented on July 30, 2024

Data is updated once after both optimization of G and optimization of D are finished here. But note that inputs of G and D are different. Data for G is a image obtained from TFRecord, but fake data for D is obtained from history of generated images.

from cyclegan-tensorflow.

lhao0301 avatar lhao0301 commented on July 30, 2024

Sorry, my question may be ambiguous. In one iteration, assume that the input data for G is Z_0 and the corresponding input data for D is X_fake (X_fake is generated from Z_0) and X_real, then we input X_fake and X_real to D for updating D. To update G, we still input X_fake generated from Z_0 to D and calculate the loss. The same Z_0 is used during the update of D and G net. In other word, we use one same batch of Z for the update of both G and D in one iteration. However, in classic gan, two different batch of Z are used to update D and G. Sample one batch Z (called Z_0 to distinguish ) used to generate fake data for updating D and then sample one other batch Z (called Z_1) for updating G in one iteration.

from cyclegan-tensorflow.

vanhuyz avatar vanhuyz commented on July 30, 2024

I understand your point. Maybe for that reason, instead of using the same Z_0 every time, CycleGAN randomly uses a image Z_1 from history of generated images to update D in order to make the training process stabler.

from cyclegan-tensorflow.

lhao0301 avatar lhao0301 commented on July 30, 2024

Oh, it's right. According to the image pool, the input Z used to update D and G respectively is distinguished. It's same with classic gan (vanilla gan). Thank you very much.

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