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

How to get D&C score #4

Closed
ygjwd12345 opened this issue Aug 22, 2021 · 7 comments
Closed

How to get D&C score #4

ygjwd12345 opened this issue Aug 22, 2021 · 7 comments

Comments

@ygjwd12345
Copy link

According to "Similar to LPIPS, we first sampled 19 pairs for each image and then used the code at https://github.com/mseitzer/pytorch-fid to extract the features of real and generated images. Finally, we fed these 1900 generated samples and real features with 2048-dimensions to the PRDC function provided in https://github.com/clovaai/generative-evaluation-prdc to calculate these scores."
So will you run 19times to generate enough generated samples?

@lyndonzheng
Copy link
Owner

Hi @ygjwd12345 thanks for your interest. We sampled 19 times for two purposes: 1. The D&C score is sensitive to image numbers in our setting, so we sampled multiple times; 2. We would like to make sure these scores (LPIPS for diversity and D&C for fidelity and diversity) come from the same tested results.

@ygjwd12345
Copy link
Author

Would you mind to tell me how to sample 19 times?

@ygjwd12345
Copy link
Author

Meanwhile, LPIPS should be smaller is better according to the original paper(The Unreasonable Effectiveness of Deep Features as a Perceptual Metric) and official GitHub(https://github.com/richzhang/PerceptualSimilarity). And I wonder how real images measure LPIPS FID and D&C.

@ygjwd12345
Copy link
Author

Hi @ygjwd12345 thanks for your interest. We sampled 19 times for two purposes: 1. The D&C score is sensitive to image numbers in our setting, so we sampled multiple times; 2. We would like to make sure these scores (LPIPS for diversity and D&C for fidelity and diversity) come from the same tested results.

If there are more than 100 images, how to sample them? why not you test all images directly?

@lyndonzheng
Copy link
Owner

Meanwhile, LPIPS should be smaller is better according to the original paper(The Unreasonable Effectiveness of Deep Features as a Perceptual Metric) and official GitHub(https://github.com/richzhang/PerceptualSimilarity). And I wonder how real images measure LPIPS FID and D&C.

Please refer to the paper BicycleGAN, where the LPIPS is used to evaluate the diversity of the results. The larger score means larger difference between the generated results.

@lyndonzheng
Copy link
Owner

Would you mind to tell me how to sample 19 times?

Please refer to the BicycleGAN and MUNIT to get multiple and diverse results.

@ygjwd12345
Copy link
Author

Would you mind to tell me how to sample 19 times?

Please refer to the BicycleGAN and MUNIT to get multiple and diverse results.

However, there is no get_z_random in your code. "sh ./scripts/test_fid.sh" can not realise it.

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

2 participants