Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
sabman wants to merge1 commit intohuggingface:main
base:main
Choose a base branch
Loading
fromdecision-labs:test-sam-with-input_boxes

Conversation

sabman
Copy link

The model should in theory supportinput_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:

Error: An error occurred during model execution: "Missing the following inputs: input_points, input_labels.

mmadaria reacted with thumbs up emoji
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
Copy link

mhassanch commentedJan 12, 2025
edited
Loading

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.

sabman and mmadaria reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@sabman@mhassanch

[8]ページ先頭

©2009-2025 Movatter.jp