Comments (10)
oh, what do you mean by this?
PNG files have too large size, up to 1 MB per 1024×1024px. But this size dont justified to use in FID. Jpeg will give same metric on FID but with 10 times less size, about 100 KB per same image.
from lightweight-gan.
@cr458 Hi Christopher! Someone else actually wrote that code originally, so this is news to me.
Reflecting on how it is written, I think it would be more efficient to copy N images over from the data directory. I'll see what I can do tomorrow
from lightweight-gan.
Why we need to copy files if we know where they places? Just use some count of known dataset, easy :D
from lightweight-gan.
@Dok11 ah got it! thanks for clarifying :)
from lightweight-gan.
And one more real_path + '{}.png'
png uses more space on HDD but to calc FID this format does not have any usable info
from lightweight-gan.
Why we need to copy files if we know where they places? Just use some count of known dataset, easy :D
oh yes, of course 🤦 lol i'll do just that
from lightweight-gan.
And one more
real_path + '{}.png'
png uses more space on HDD but to calc FID this format does not have any usable info
oh, what do you mean by this?
from lightweight-gan.
@cr458 Hi Christopher! Let me know if https://github.com/lucidrains/lightweight-gan/releases/tag/0.16.4 works for you!
from lightweight-gan.
@lucidrains looks like it's working fine!
from lightweight-gan.
@lucidrains looking at the pytorch-fid code all we need to do is save the mean and covariance matrix of the inception embeddings of the real images.
so here's what I'd suggest:
-
Calculate Inception activations once for the real images, using the whole dataset and the
calculate_activation_statistics
from here store the them as npz files in the fid_real directory -
In subsequent FID calculations, use these stored values, and only save the generated images
This should speed up the FID calculation even more, what do you think?
from lightweight-gan.
Related Issues (20)
- question about generated images HOT 35
- Error(s) in loading state_dict for LightweightGAN HOT 2
- Batchnorm layer missing in the discriminator?
- showing results while training ? HOT 2
- G is showing up a negative number. What does that mean?
- Multi GPU utilization problem.
- TypeError: __init__() got an unexpected keyword argument 'hparams' HOT 1
- unable to load save model. please try downgrading the package to the version specified by the saved model HOT 7
- --load_strict=False failing to load model HOT 1
- Can't find "__main__" module (sorry if noob question) HOT 4
- loss implementation differs from paper HOT 1
- Doesn't detect CUDA from Nvidia GPU HOT 1
- Torchvision Assertion error while importing custom data
- Aim installation error HOT 4
- Discriminator Loss converges to 0 while Generator loss pretty high HOT 3
- Dont detects cuda HOT 1
- Using Lightweight GAN as a library
- Projecting generated Images to Latent Space HOT 1
- Executing with a trailing \ in the arguments sets the variable new to the truthy value '\\' and deletes all progress
- CUDA out of memory error while generating interpolations
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 lightweight-gan.