-
Notifications
You must be signed in to change notification settings - Fork 793
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add zero-shot-object-detection
w/ OwlViT
#392
Conversation
@xenova Why do the boxes of the object detection pipeline have values between 0-1 and the boxes of this pipeline absolute values? I wanted to try to adapt the static template on HF, but now I need to first get the image height and width somehow. |
@tobiascornille You can modify the |
Example usage:
Code adapted from transformers docs.
Example 1
(showing same results as python library with unquantized model)
See output
Example 2
(different labels + using quantized model)
See output
Example 3
(different image and pipeline parameters)
See output