Comments (5)
For channels, we tile:
compare_gan/compare_gan/src/eval_gan_lib.py
Line 786 in 560697e
For resolution, it's resized by tfgan library:
compare_gan/compare_gan/src/fid_score.py
Line 151 in 560697e
from compare_gan.
Inception doesn't limit the input size just acquires the input channel is three. I got the Inception Score without resize op on Fashion.
https://github.com/openai/improved-gan/blob/0a09faccb45088695228bbf50435ee71e94eb2ce/inception_score/model.py#L77
input_tensor = tf.placeholder(tf.float32, shape=[None, None, None, 3]
the FID is the wassertain distance of two Gaussian distribution estimated by the Inception pool3, the embedding dimensions will be consistent only if the input size is the same for real images and fake images. Moreover, if it resized, the data distribution will be distorted.
And I don't find the resize needed in the lib by authors:
https://github.com/bioinf-jku/TTUR
...Maybe I'm wrong based my shallow knowledge, thanks.
from compare_gan.
Thanks for the details by you, so the gray scale image was transformed to rgb by repeating channels. and you mean that the Fashion images' resolution(28x28) were resized? I don't think it needs.
from compare_gan.
The input to the Inception is not of size 28x28, so it's needed to resized. How would you compute the embedding otherwise?
from compare_gan.
OpenAI and tf.gan code differ at which place they input the data to Inception (before or after preprocessing). tf.gan uses input node 'Mul:0' while OpenAI uses input node 'ExpandDims:0'.
As far as I remember this explained the difference, because the resizing to 299x299 happens between those 2 nodes.
from compare_gan.
Related Issues (20)
- resnet_biggan_deep seems not consist with BigGanDeep in the paper HOT 1
- Is the widening factor of S2GAN's feature extractor really 16? HOT 4
- SSGAN and unsupervised S3GAN are unavailable on tfhub.dev
- Need trainable version for pretrained SSGAN in tfhub HOT 2
- train on GPU HOT 1
- The SSGAN model has no rotation loss in discriminator HOT 1
- Problem about shuffle buffer size for unconditional GAN HOT 1
- issue: ModuleNotFoundError: No module named 'compare_gan' HOT 1
- http error 409 conflict HOT 1
- Error "Retval[7] does not have value" when training SSGAN HOT 3
- celeba_hq dataset was removed?
- SNDCGAN implementation is different from the architecture described in SN paper HOT 1
- Detailed procedure for preprocessing CelebA-HQ 128x128 images HOT 2
- module 'tensorflow' has no attribute 'GraphKeys' HOT 1
- Can I use a custom dataset HOT 1
- TypeError: 'NoneType' object is not iterable HOT 2
- Details in the implementation of BigGAN HOT 2
- tf-nightly-gpu version < 2 no longer exists
- Can't run on v3-8 or v3-32 TPU nodes. HOT 7
- Critical error in the implementation of compare_gan vs the official BigGAN model
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 compare_gan.