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 SVHN #39

Open
liangbright opened this issue Jan 19, 2020 · 5 comments
Open

pretrained SVHN #39

liangbright opened this issue Jan 19, 2020 · 5 comments

Comments

@liangbright
Copy link

Thank you for providing the models.
Could you please check the pretrained SVHN?
The accuracy of the pretrained SVHN is close to zero.

@samuelemarro
Copy link

Can confirm, 0.47% on my machine.

@LAITENGHUI
Copy link

do you guys use single digit? it literally doesn't work.

@MinghuiChen43
Copy link

real target [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
prediction [9, 0, 1, 2, 3, 4, 5, 6, 7, 8]

Re-adjust the prediction results. In my case, the model can achieve 98% training accuracy and 96% test accuracy.

@yintao-he
Copy link

Note that the range of SVHN label is [-1, 8], but the predicted value is from 0 to 9. Only fix it in line 190 of misc.py (only for svhn dataset):
idx_pred = idx_pred
to
idx_pred = idx_pred - 1 # modified
The top1 accuracy could achieve more than 90% using 8-bit quantization.

@jtruongj
Copy link

The problem comes from the target_transform function under svhn/dataset.py. Replace the implementation with the following snippet and you should be fine.
return (int(target) - 1) % 10

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

6 participants