Giter Club home page Giter Club logo

Comments (3)

neka-nat avatar neka-nat commented on September 27, 2024

Hi @zhengzibing2011 ,

Thanks for the good question.
The discriminator(d_container) is compiled in two models: "d_model" and "all_model".
According to the paper, the discriminator is trained in the "d_model", so I set the flag for training in the "all_model" to False.

from image_completion_tf2.

zhengzibing2011 avatar zhengzibing2011 commented on September 27, 2024

Hi @zhengzibing2011 ,

Thanks for the good question.
The discriminator(d_container) is compiled in two models: "d_model" and "all_model".
According to the paper, the discriminator is trained in the "d_model", so I set the flag for training in the "all_model" to False.

Thanks a lot for your timely response! The code provides me with great reference value. Thanks you again. I still have the question about "d_container.trainable = False" in the trian.py. Is its function to keep the all model (i.e., the combination of the completion network and the discriminator network) from being trained while training the discriminator when tc<n<tc+td? If my guess is true, the conditional statement "if n<tc: ..., else: ..., if n>tc+td:..." has already achieved this goal. When I comment "d_container.trainable = False" , the training-loss log seems unchanged. The training log is given as follows, in which the above the results from the original code and the bottom is the results after commenting "d_container.trainable = False" . Looking forward to your reply again.
training loss log.docx

from image_completion_tf2.

neka-nat avatar neka-nat commented on September 27, 2024

It seems strange that commenting out "d_container.trainable = False" would have the same behavior.
I think it would be better to look at the change in the weight of the discriminator before and after training with all_model, not loss.

from image_completion_tf2.

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.