Open
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.
|
I checked optimum package and it seems that input_boxes is missing as input in SamOnnxConfig https://github.com/huggingface/optimum/blob/adcae3841ac638aa911e6a185d3f1617e58495f8/optimum/exporters/onnx/model_configs.py#L2408 Also there is no test available with input_boxes as a input in transformer.js https://github.com/huggingface/transformers.js/blob/1130961ac26766ba4a0f5af2640925f4f39b9974/tests/models/sam/test_modeling_sam.js But it can be seen that SamImageProcessor is using input_boxes to process image. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The model should in theory support
input_boxesas 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_boxeson the main branch. Getting error: