Comments (4)
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.
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.
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.
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)
- Missing the ngf parameter for F generator HOT 2
- CPU 100%, but training never starts HOT 2
- verbosity error HOT 4
- can be used to remove the watermark ? HOT 1
- Nothing in cityscapes downloaded by download_dataset.sh HOT 1
- Error happen trying to export. HOT 1
- Control dependencies in CycleGAN optimizer
- image size, default: 256
- 怎么使用预训练的模型啊
- Observing backward pass while running inference.py with a pb file, which is consuming lot of time
- NO FILE IN THE Checkpoints AFTER Train
- ops.py重的Instance Normalization是不是有个地方搞错了? HOT 2
- Use python train.py --load_model XXXX problem
- can this
- Can this code work with gray scale image or rectangle img?
- How to deal with high contrast background colors?
- How to convert the ckpt model into savedmodel HOT 1
- The training doesn't start
- Training doesn't start HOT 1
- pretrained examples: freezed or not? any data preprocessing?
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 cyclegan-tensorflow.