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

Zero-shot finetuning examples #32459

Open
SangbumChoi opened this issue Aug 6, 2024 · 3 comments · May be fixed by #32483
Open

Zero-shot finetuning examples #32459

SangbumChoi opened this issue Aug 6, 2024 · 3 comments · May be fixed by #32483
Labels
Feature request Request for a new feature Vision

Comments

@SangbumChoi
Copy link
Contributor

Feature request

@amyeroberts @qubvel @NielsRogge

Does HF team intersted in adding zero-shot finetuning example like https://github.com/SangbumChoi/transformers/tree/grounding_examples/examples/pytorch/zero-shot?

If the team merge these two following open PR then
#31828
#31964

we can finetune the groundingdino and write something like this.
https://blog.roboflow.com/how-to-fine-tune-paligemma/

I will left some model that you can run
Model : https://huggingface.co/danelcsb/grounding-dino-tiny-finetuned-cppe-5-10k-steps-no-trainer/tree/main

Motivation

People can use zero-shot model to finetune there own projects.

Your contribution

I have made the branch already and ready to generate PR. Need some more modification.
Before
Screenshot 2024-08-06 at 6 08 57 PM
After
Screenshot 2024-08-06 at 6 09 05 PM

@SangbumChoi SangbumChoi added the Feature request Request for a new feature label Aug 6, 2024
@qubvel
Copy link
Member

qubvel commented Aug 6, 2024

Hi @SangbumChoi, the finetuned model example looks great! We are definitely interested in such an example for fine-tuning and blogpost! Let me know if you need any assistance!

@SangbumChoi SangbumChoi linked a pull request Aug 7, 2024 that will close this issue
5 tasks
@zappy586
Copy link

zappy586 commented Aug 9, 2024

Hi @SangbumChoi. First of all, It's great that now we can fine-tune zero-shot models like GDINO directly from transformers. But in the example picture above, It seems that the class names in the finetuned example are very incoherent in comparison to the first image. Why do you that that is? Do you think overfitting the model on the fine-tuning dataset fix this issue?

@SangbumChoi
Copy link
Contributor Author

SangbumChoi commented Aug 9, 2024

@zappy586 Thanks for the interest. That is actually nice catch. I also have realized that problem and fixed in the above PR (It was not overfitting, it was about text_encoder part). Please see the updated examples in the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Request for a new feature Vision
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants