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

Question about accuracy evaluation? #23

Open
happsky opened this issue Nov 9, 2018 · 6 comments
Open

Question about accuracy evaluation? #23

happsky opened this issue Nov 9, 2018 · 6 comments

Comments

@happsky
Copy link

happsky commented Nov 9, 2018

For compute_accuracies.py, I just want to make sure, is the
final result = total match found for synthesized / total images into consideration?

@kregmi
Copy link
Owner

kregmi commented Nov 9, 2018

It's the prediction accuracy between real and generated images. We use the pre-trained Alexnet model to obtain annotations for real images and class predictions for generated images. If the model predicts the real and synthesized image pair to be of same class, then its a hit otherwise its a miss.
final result = total hits/total images into consideration.

@happsky
Copy link
Author

happsky commented Nov 9, 2018

All evaluation metrics are too slow, do you have any ideas to speed them?

@kregmi
Copy link
Owner

kregmi commented Nov 9, 2018

Sadly they are slow. A possible way to make it faster is to compute features in batches, currently it is written to work on single image at a time.

@happsky
Copy link
Author

happsky commented Nov 9, 2018

I also noted that you did not use GPUs, is there any possibility to use GPU while evaluation.

@kregmi
Copy link
Owner

kregmi commented Nov 9, 2018

Not sure, that part of code was borrowed from some other people, I didn't spend time on making it quicker.

@happsky
Copy link
Author

happsky commented Jul 1, 2019

image

@kregmi for the result on the image, am I correct?
top-1, all = 1847/20826
top-1, >0.5 = 229/2470
top-5, all = 7194/20826
top-5, >0.5 = 883/2470

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