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 use this model to train and evaluate on Imagenet? #24

Open
Alexanzhuo opened this issue Nov 11, 2020 · 3 comments
Open

how to use this model to train and evaluate on Imagenet? #24

Alexanzhuo opened this issue Nov 11, 2020 · 3 comments

Comments

@Alexanzhuo
Copy link

No description provided.

@Alexanzhuo
Copy link
Author

Thank you for providing this network!
I want to use this model "ViT" to classify Imagnet,but the accuracy is not good.I try it on mini-Imagenet first.
I use the network like this:
net = ViT(
image_size = 224,
patch_size = 16,
num_classes = 64,
dim = 1024,
depth = 6,
heads = 8,
mlp_dim = 2048,
dropout = 0.1,
emb_dropout = 0.1
).cuda(device)

@Alexanzhuo
Copy link
Author

Alexanzhuo commented Nov 11, 2020

But the accuracy just stops increasing.
temp

@lucidrains
Copy link
Owner

@Alexanzhuo Hi Alex, you won't see any positive results in the small data regime. What you can do, however, is to run self-supervised learning (BYOL) on a bunch of unlabelled images first, and then train on your tiny mini-Imagenet corpus.

Or you can just use Ross' version with the pretrained weights released by Google

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