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

pretrained weights #5

Open
mangye16 opened this issue Sep 18, 2018 · 4 comments
Open

pretrained weights #5

mangye16 opened this issue Sep 18, 2018 · 4 comments
Assignees

Comments

@mangye16
Copy link

Hi, I have evaluated the code with another image normalization parameters, the performance is much better. But still, I'm not sure whether it's correct or not. Could u pls tell me where the pretrained weights come from?

@antspy
Copy link
Owner

antspy commented Sep 18, 2018

Hi,

the pretrained weights come from the repo linked in the README file (https://github.com/soumith/inception.torch ). If you find a mistake in my image normalization code, please don't hesitate to issue a pull request (or just tell me here). Thank you!

@mangye16
Copy link
Author

Actually, I use the default normalization parameter of pytorch, the performance is much better for my task. I'm not sure whether it works for the ImageNet testing. You may try it.
normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406],std=[0.229, 0.224, 0.225])

@antspy
Copy link
Owner

antspy commented Sep 18, 2018

Thanks! What is the accuracy that you get with these settings?

@antspy antspy self-assigned this Sep 18, 2018
@mangye16
Copy link
Author

Actually, I only test it on CUB200 dataset using the pre-trained weights.
Using your normalization parameter the accuracy is: recall @1 =26.5%, nmi =38.2%
Using the above-mentioned parameter the accuracy is: recall @1 =39.1%, nmi =49.5%
I also tried normalize = transforms.Normalize(mean=[0.4588, 0.4588, 0.4588],std=[0.2, 0.2, 0.2]), the accuracy is: recall @1 =40.1%, nmi =49.8%

However, the pretrained inception v1 model with Tensorflow on CUB200 dataset is about recall @1 =43%, nmi = 49%.

Therefore, I'm not sure which parameter is correct. Could u pls check it on ImageNet? Thanks a lot.

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