Open crapthings opened 10 months ago
Hey https://github.com/luca-medeiros/lang-segment-anything#usage here you can find custom checkpoint usage. havent test your case tho
How to soulve the problem??
Hey, I think I found the issue.
https://github.com/luca-medeiros/lang-segment-anything/blob/134a48a81ebd691686187ecce2d016fb327a8852/lang_sam/lang_sam.py#L76
I believe here should be:
sam = sam_model_registry[self.sam_type](checkpoint=ckpt_path)
Mind trying and writing a PR if it works?
https://github.com/SysCV/sam-hq#model-checkpoints
https://huggingface.co/lkeab/hq-sam/tree/main
how to load sam_hq model?