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

How to do parameter update in grounded_sam_demo.py #398

Open
3D3C opened this issue Nov 20, 2023 · 1 comment
Open

How to do parameter update in grounded_sam_demo.py #398

3D3C opened this issue Nov 20, 2023 · 1 comment

Comments

@3D3C
Copy link

3D3C commented Nov 20, 2023

Hi author, in grounded_sam_demo.py there are only text prompts, I added a mask prompt so I need to retrain the parameters, but I still have no parameter update after removing the parameter freeze code in SamPredictor. So I would like to ask if grounded_sam_demo.py can do parameter updates or do I need to rewrite a fine-tuning code myself?

@rentainhe
Copy link
Collaborator

You can try to use the open-sourced Grounding-DINO training code as IDEA-Research/GroundingDINO#241 to finetune grounding-dino on your own dataset and replace the original weights of G-DINO in Grounded-SAM to get a better result

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