Grounded-Segment-Anything
Grounded-Segment-Anything copied to clipboard
SAM predictor Error
When I try to get a mask, I got an error:
Traceback (most recent call last):
File "grounded_sam_demo.py", line 206, in
same error. any solutions?
boxes_filt is empty:
# run grounding dino model
boxes_filt, pred_phrases = get_grounding_output(
model, image, text_prompt, box_threshold, text_threshold, device=device
)
https://github.com/IDEA-Research/Grounded-Segment-Anything/issues/100#issuecomment-1506519629
In my case, using --device cuda:5 always returns empty boxes_filt.
I export CUDA_VISIBLE_DEVICES=5 and then use --device cuda, and issue solved.