Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FID sensitive to image saving #63

Open
YutongZheng opened this issue Feb 26, 2021 · 4 comments
Open

FID sensitive to image saving #63

YutongZheng opened this issue Feb 26, 2021 · 4 comments

Comments

@YutongZheng
Copy link

I found that the FID changes drastically when images are saved to the disk. Basically, it is caused by the change of pixel values when rounded from the continuous real values to 0-255 integers. Is this common in FID testing? How does everyone minimize its effect?

@AilsaF
Copy link

AilsaF commented May 13, 2021

I have the same issue. Now I save and load [0,1] range raw data instead of images for the evaluation, and numbers make sense to me.

@GaParmar
Copy link

This should not be the case because generated images are often quantized to uint8 before computing the FID score.
(because real images are not real values).
The different in FID might be cause due to JPEG compression.
The table 4 and figure 2 in this paper might be relevant to this issue.
( https://arxiv.org/pdf/2104.11222.pdf )

@micklexqg
Copy link

I have the same issue. Now I save and load [0,1] range raw data instead of images for the evaluation, and numbers make sense to me.

As saving it to be image format is not okay, how to save it to be [0, 1] range raw data, something like .npz?

@KomputerMaster64
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants