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

Fine tuning LLAVA for object detection #24

Open
dipikakhullar opened this issue Jul 20, 2024 · 1 comment
Open

Fine tuning LLAVA for object detection #24

dipikakhullar opened this issue Jul 20, 2024 · 1 comment

Comments

@dipikakhullar
Copy link

How do we finetune llava for object detection tasks, or predicting a trajectory of actions. How would that work? Then I need some regression based loss like MSE right ? And instead of outputting text we would want to output a set of coordinates. From other repos it seems like fine tuning for regression tasks doesn’t seem to work well.

@sshh12
Copy link
Owner

sshh12 commented Jul 28, 2024

Hey! I would said multi_token/llava are best suited for taking the features from an image model and embedding them in a chat-able large language model.

If you want to do object detection (rather than chat-with-this-image type tasks), you are best off just using an existing object detection specialized architecture: https://huggingface.co/docs/transformers/en/tasks/object_detection. If you wanted to then do something chat/text based on already detected objects, you could pass the outputs of that object detection model to the LLM.

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