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
Accuracy of the network on the 50000 test images: 0.1% #134
Comments
Hi @DCBXZ66, thanks for your attention to our work. ILSVRC2012 is ImageNet. The command is correct. I run the same command and it outputs:
Do other models even other codebases obtain the correct accuracy?
The PR #136 supports CPU inference for TinyViT. It needs an extra argument python -m torch.distributed.launch --nproc_per_node 1 main.py --cfg configs/22k_distill/tiny_vit_5m_22k_distill.yaml --data-path ./ImageNet --batch-size 128 --eval --resume ./checkpoints/tiny_vit_5m_22k_distill.pth --only-cpu --opts DATA.DATASET imagenet |
Thank you for your timely reply. I tried again and found the problem: val data in the tar package downloaded directly from ImageNet does not have a label folder, so it needs to be handled. After unzipping, I added a label folder to solve the problem of accuracy.
|
@DCBXZ66 Great! |
Close the issue since the issue has been resolved and the PR #136 has been merged. |
Hello, the author, this is a very meaningful work. I encountered this accuracy problem when running the following code:
python -m torch.distributed.launch --nproc_per_node 8 main.py --cfg configs/22k_distill/tiny_vit_5m_22k_distill.yaml --data-path ./ImageNet --batch-size 128 --eval --resume ./checkpoints/tiny_vit_5m_22k_distill.pth --opts DATA.DATASET imagenet
Did I do something wrong?The dataset I use is ILSVRC2012. Is this what the project calls ImageNet?
On the other hand, I would like to ask how to evaluate it on a computer only with CPU?
Look forward to your reply, thank you!
The text was updated successfully, but these errors were encountered: