- Notifications
You must be signed in to change notification settings - Fork964
add test for input_boxes#1141
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
The model should in theory support input_boxes as per this issue:https://huggingface.co/Xenova/slimsam-77-uniform/discussions/2#65c022977c6ad1994b893a8d but there's not test or example to verify this.
mhassanch commentedJan 12, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I checked optimum package and it seems thatinput_boxes is missing as input in SamOnnxConfighttps://github.com/huggingface/optimum/blob/adcae3841ac638aa911e6a185d3f1617e58495f8/optimum/exporters/onnx/model_configs.py#L2408 Also there is no test available withinput_boxes as a input in transformer.jshttps://github.com/huggingface/transformers.js/blob/1130961ac26766ba4a0f5af2640925f4f39b9974/tests/models/sam/test_modeling_sam.js But it can be seen thatSamImageProcessor is usinginput_boxes to process image.
|
The model should in theory support
input_boxes
as per this issue:https://huggingface.co/Xenova/slimsam-77-uniform/discussions/2#65c022977c6ad1994b893a8d but there's not test or example to verify this. I also couldn't get the model to accept theinput_boxes
on the main branch. Getting error: