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

Beit3 classification #965

Closed
amandaluof opened this issue Jan 3, 2023 · 2 comments
Closed

Beit3 classification #965

amandaluof opened this issue Jan 3, 2023 · 2 comments

Comments

@amandaluof
Copy link

amandaluof commented Jan 3, 2023

Thanks for your inspiring and effective work. You achieved really great performance on imagenet-1k classification. As the paper mentioned, you treat classification as retrieval and do intermediate retrieval on imagenet-21k before fine-tuning. But we are wondering what you do for polysemy and same class names for different classes in the dataset imagenet-21k.

Looking forward to your reply.

@addf400
Copy link
Contributor

addf400 commented Jan 4, 2023

Hi @amandaluof , we use the following code to preprocess the class names:

from nltk.corpus import wordnet as wn
syn = wn.synset_from_pos_and_offset('n', wordnet_id)
class_name = ", ".join(_.name() for _ in syn.lemmas())

@donglixp
Copy link
Contributor

The code and pre-trained models of BEiT-3 can be found at aka.ms/beit3.

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

3 participants