Coder Social home page Coder Social logo

Comments (10)

Dok11 avatar Dok11 commented on July 21, 2024 2

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.

lucidrains avatar lucidrains commented on July 21, 2024 1

@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.

Dok11 avatar Dok11 commented on July 21, 2024 1

Why we need to copy files if we know where they places? Just use some count of known dataset, easy :D

from lightweight-gan.

lucidrains avatar lucidrains commented on July 21, 2024 1

@Dok11 ah got it! thanks for clarifying :)

from lightweight-gan.

Dok11 avatar Dok11 commented on July 21, 2024

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.

lucidrains avatar lucidrains commented on July 21, 2024

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.

lucidrains avatar lucidrains commented on July 21, 2024

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.

lucidrains avatar lucidrains commented on July 21, 2024

@cr458 Hi Christopher! Let me know if https://github.com/lucidrains/lightweight-gan/releases/tag/0.16.4 works for you!

from lightweight-gan.

cr458 avatar cr458 commented on July 21, 2024

@lucidrains looks like it's working fine!

from lightweight-gan.

cr458 avatar cr458 commented on July 21, 2024

@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:

  1. 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

  2. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.