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

Custom SAM Model #61

Open
ajaidevanath opened this issue May 20, 2024 · 5 comments
Open

Custom SAM Model #61

ajaidevanath opened this issue May 20, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@ajaidevanath
Copy link

How to use custom SAM model trained on custom medical segmentation data?

@ajaidevanath ajaidevanath added the enhancement New feature or request label May 20, 2024
@piyushw0203
Copy link

heyy, were you able to figure it out?

@luca-medeiros
Copy link
Owner

you can pass the model path to ckpt_path argument here

def __init__(self, sam_type="sam2.1_hiera_small", ckpt_path: str | None = None):

Not tested with SAM2.1 release.

@ajaidevanath
Copy link
Author

Thank you Lucas, Wanted to check where do we get the checkpoint for the "sam2.1_hiera_small" model

@luca-medeiros
Copy link
Owner

@ajaidevanath
For the original models from Meta you don't need to download the models lang-sam does it internally. You only need to use ckpt_path if you are using a custom model.

@ajaidevanath
Copy link
Author

ok got it , Thanks for the help :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants