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

finetune for new task #11

Open
ofirliba opened this issue Jul 9, 2024 · 3 comments
Open

finetune for new task #11

ofirliba opened this issue Jul 9, 2024 · 3 comments

Comments

@ofirliba
Copy link

ofirliba commented Jul 9, 2024

I would like to define a new vision task.
How can I do it?

another question , can I change the output format of the pretrained model ? For example, I want a structured output for the "more detailed caption". A sort of json format like this:

{
"backdround_description": str,
"number_of_people": int,
"people_description", str,
}

thanks

@andimarafioti
Copy link
Owner

Sure, you can train the model for a new task using this code. I recommend you to check out the blog we wrote about this: https://huggingface.co/blog/finetune-florence2

@ofirliba
Copy link
Author

ofirliba commented Jul 9, 2024

thanks for the fast respond. I will follow the blog.
Regarding the next question - can I change to output format to "json like format" without finetune ?

@andimarafioti
Copy link
Owner

I don't think so, florence is not that powerful.

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