Comments (4)
from improved_wgan_training.
Thank you so much for your very quick and concise answer!
Unfortunately even following these steps I wasn't able to make it work, and the resulting images still don't look anything like the samples during training.
Would it be save to substitute your batchnorm implementation with tf.layers.batch_normalization or is this something different?
from improved_wgan_training.
I've been looking into this too recently.
The problem of the tf.layers.batch_normalization implementation (or any high-level implementation of batch / layer norm currently in TF) is that it's not conditional.
It is definitely possible to take that code and turn it into a conditional implementation. But given how long and intricate the code is (many many different cases, depending on whether you use the fused or normal batch norm, if you use virtual batch, renormalization, eager execution...), it's not gonna be too easy for me to do it (but mostly because I'm not a good programmer).
However, if someone has done it, I would be very happy to get a pointer because I wasn't able to find a single clean implementation of conditional batch norm for tensorflow, so far.
from improved_wgan_training.
How about...
- In training, set is_training to True, update_moving stats to True and feed stats_iter with iteration number. So that you can keep updating the moving mean and moving variance, and at the same time using the empirical mean and variance of the current training batch.
- In inference, set is_training to False and update_moving_stats to False. So that only population mean and variance is used and they should not be updated.
from improved_wgan_training.
Related Issues (20)
- o._shape = TensorShape(new_shape) caused error in inception_score.py HOT 1
- Why the gradient penalty item decreases to zero and then grows to infinity ?
- This code is outdated seriously HOT 3
- inception_score.py: fixed the issue of ValueError "Cannot iterate over a shape with unknown rank"
- inception_score.py: ValueError in the method _init_inception() HOT 1
- Could it be possible to make the trained GAN publicly available?
- Mismatch between code and paper in the gradient penalty algorithm HOT 1
- Questions about the loss
- AttributeError: module '_pickle' has no attribute 'HIGHEST_PROTOCOL' HOT 1
- Error Conv2DCustomBackpropFilterOp only supports NHWC HOT 2
- Question of DEVICE in the gan_cifar10_resnet.py
- how to run itοΌ
- Critic loss curve
- a question about loss
- reproducing inception score on gan_cifar.py HOT 2
- If I intend to calculate gradient penalty for two dataset in differet dimension, what should I do?
- gan_mnist.py's ERROR HOT 1
- Query: WGAN-GP FID SCORE (PyTorch)
- Wire gide
- Conv2DCustomBackpropInputOp only supports NHWC
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 improved_wgan_training.