Closed kulkarnikeerti closed 1 month ago
Thanks for the interest!
But I couldn't find this argument in the code; in which line does that appear?
The default constructor states it as false, so it doesn't seems to make a difference:
you may need to upgrade gdino to latest version to solve the issue.
@kulkarnikeerti
I got the same error but did not upgrade GroundingDINO yet. A quick walkaround solution is to comment the remove_combined
argument out (not tested the side effect)
def predict_dino(self, image_pil, text_prompt, box_threshold, text_threshold):
image_trans = transform_image(image_pil)
boxes, logits, phrases = predict(model=self.groundingdino,
image=image_trans,
caption=text_prompt,
box_threshold=box_threshold,
text_threshold=text_threshold,
# remove_combined=self.return_prompts,
device=self.device)
W, H = image_pil.size
boxes = box_ops.box_cxcywh_to_xyxy(boxes) * torch.Tensor([W, H, W, H])
return boxes, logits, phrases
Hello,
First of all thanks for the great work. I ran
python3 running_test.py
and I get the following errorTypeError: predict() got an unexpected keyword argument 'remove_combined'
Could you please suggest the possible solution for this? Thanks in advance
@healthonrails @kauevestena @mutusfa @siddharthksah @dolhasz
Update: The script works fine without this argument. Could you please let me know how this argument influences the output of the model?