mzg0108

Results 5 comments of mzg0108

> KeyError: 'groundingdino_swint' Start SAM Processing Found GroundingDINO in pip. Verifying if dynamic library build success. GroundingDINO dynamic library have been successfully built. Running GroundingDINO Inference Initializing GroundingDINO GroundingDINO_SwinB (938MB)...

> I am also facing the same issue. Are there permanent solution to this problem? I tried uninstalling segment-anything before installing this sam-hq, but getting the same error Have you...

> I'm having the same problem. File "/xxx/xxx/xxxx/xxxxx/xxxx/xxxx/xxxxx.py", line 22, in get_mask_generator sam = sam_model_registry[model_type](checkpoint=sam_checkpoint) File "/xxxx/xxxx/.pyenv/versions/3.10.8/lib/python3.10/site-packages/segment_anything/build_sam.py", line 15, in build_sam_vit_h return _build_sam( File "/xxxx/xxxx/.pyenv/versions/3.10.8/lib/python3.10/site-packages/segment_anything/build_sam.py", line 106, in _build_sam sam.load_state_dict(state_dict)...

I have added `strict=False` to the load_state_dict function call and apparently it is working. I guess the error was because of different versions of pytorch.

I have got the same error. the demo code works fine and generate the segmented results. **Have you found any solution?**