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

Code for object recognition. #1

Open
kai-wen-yang opened this issue Jul 2, 2023 · 7 comments
Open

Code for object recognition. #1

kai-wen-yang opened this issue Jul 2, 2023 · 7 comments

Comments

@kai-wen-yang
Copy link

Hi, thanks for the awesome work. When will you release the code for object recognition?

@williamberrios
Copy link
Collaborator

Hi @kai-wen-yang, thanks for your interest! We'll release code for object recognition and vision-language tasks this week.

@kai-wen-yang
Copy link
Author

Hi, sorry to bother you, this week is almost over.

@kai-wen-yang
Copy link
Author

@williamberrios

@williamberrios
Copy link
Collaborator

Hi, sorry for the delay. We are working on bringing a flexible version for evaluating Lens.

@kai-wen-yang
Copy link
Author

Would you please tell me the way you perform object recognition so that I can try to implement it by myself?
Did you calculate the negative log likelihood of llm for each class, and then select the one with the smallest negative log likelihood as your prediction?
Or did you directly use llm to generate the class according to tags and attributes?

@williamberrios
Copy link
Collaborator

In object recognition, we compute the negative log-likelihood (NLL) for each class and choose the smallest value. Refer to Figure LENS for image classification in the readme for better understanding.

@shuhao02
Copy link

shuhao02 commented Oct 9, 2023

Hi, thanks for your fantastic work!
I'm curious about the "negative log-likelihood (NLL) for each class" when the LLM is based on the autoregressive model that generates tokens one by one. Did you calculate the NLL of one class by averaging the tokens' NLL?
Would you please give more details about the calculation?

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

4 participants
@williamberrios @shuhao02 @kai-wen-yang and others