-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
my code:
from PIL import Image
from vision_agent_tools.models.owlv2 import Owlv2
# load image
image = Image.open("test.jpg")
model = Owlv2()
detections = model(image=image, prompts=["find vehicles"])
print(detections)
but it's error:
Traceback (most recent call last):
File "/data/docker/yfq/agent_test/vision-agent-tools/xx.py", line 8, in <module>
detections = model(image=image, prompts=["find vehicles"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/py11/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
TypeError: Owlv2.__call__() got an unexpected keyword argument 'image'
help me!!!
Metadata
Metadata
Assignees
Labels
No labels