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

Give description of the classes to CLIP #94

Open
TimotheeWrightFicha opened this issue Apr 5, 2023 · 0 comments
Open

Give description of the classes to CLIP #94

TimotheeWrightFicha opened this issue Apr 5, 2023 · 0 comments

Comments

@TimotheeWrightFicha
Copy link

[Question]

I tried to use a custom vocabulary. As Some of the classes are very specific, I wanted to give a clear description of my class to CLIP.

As it is an image - text pair I figured that having a very long and descriptive text could help CLIP match the correct classes.

vocabulary = 'custom'
metadata = MetadataCatalog.get("__unused")
metadata.thing_classes = [
  'food can',
  'drink can',
  'aluminium foil',
  'Packaging made of paper, cardboard, without plastic protection film'
]

Is there another way to do it ? Will it help if I write a 3 lines paragraph that describe the class ?

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

1 participant