Comments (3)
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.
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.
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)
- where did you use the joint loss? HOT 6
- Test different size of images
- does this code deal with random mask? HOT 2
- error on Keras 2.2.2 merge HOT 4
- Set "d_container.trainable = True" after training all_model HOT 4
- question HOT 1
- data preprocess HOT 2
- I cant load G-discriminator HOT 7
- Test.py HOT 2
- ValueError: Layer sequential expects 1 inputs, but it received 2 input tensors.
- test.py
- train.py
- which branch should I choose? HOT 2
- Can't training the model on GPU HOT 3
- The results seems not good. HOT 15
- Computer available memory is reduced from 14G to 100M until the program is killed HOT 3
- I didn't see obvious differents in the results with or without the local and global D. HOT 1
- predict the test pic HOT 4
- A keras question about bulid network HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image_completion_tf2.