Skip to content
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 sam ONNX export #995

Closed
wants to merge 2 commits into from
Closed

Conversation

fxmarty
Copy link
Contributor

@fxmarty fxmarty commented Apr 21, 2023

As per title. For now only support input_points as an input, will the rest really be useful @younesbelkada ?

We will need an other PR to be merged in transformers huggingface/transformers#22915, and we will need to wait for transformers to release.

Yon can try with: optimum-cli export onnx --model fxmarty/sam-vit-tiny-random sam_onnx

Validation on various shapes pass: RUN_SLOW=1 pytest tests/bettertransformer/test_encoder.py -k "test_accelerate_compatibility_cpu_gpu" -s -vvvvv

Fixes #990

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

@younesbelkada
Copy link
Contributor

Closing as #1025 got merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[New task] Mask generation
4 participants