You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey everyone, I met with an error when coding on inference_one_img.py
I think it's because when I debug, I change some codes in some file by mistake.
and here's my error.
assert text_threshold is not None or token_spans is not None, "text_threshould and token_spans should not be None at the same time!"
caption = caption.lower()
caption = caption.strip()
if not caption.endswith("."):
caption = caption + "."
device = "cuda" if not cpu_only else "cpu"
model = model.to(device)
image = image.to(device)
with torch.no_grad():
outputs = model(image[None], captions=[caption]) `
and my error is
TypeError: 'GroundingDINO' object is not callable
where I shall start with when debuging this error? Thank you for your answer.
The text was updated successfully, but these errors were encountered:
Hey everyone, I met with an error when coding on inference_one_img.py
I think it's because when I debug, I change some codes in some file by mistake.
and here's my error.
`def get_grounding_output(model, image, caption, box_threshold, text_threshold=None, with_logits=True, cpu_only=False, token_spans=None):
and my error is
where I shall start with when debuging this error? Thank you for your answer.
The text was updated successfully, but these errors were encountered: