-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Add image encoder onnx export #326
base: main
Are you sure you want to change the base?
Add image encoder onnx export #326
Conversation
Hi @Dominic23331! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
I found some problems when i try to export vit_h model, and i`m going to fix it. |
scripts/export_image_encoder.py
Outdated
"--use-preprocess", | ||
action="store_true", | ||
help=( | ||
"Replaces the model's predicted mask quality score with the stability " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Dominic23331 Is something wrong with this help text?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will correct it as soon as possible
I meet a problem when I convert vit-h encoder model: torch version 2.0.1 |
When exporting the vit_h model, use a folder to store it, so this issue will not occur. I will fix this bug as soon as possible |
感谢分享,已经成功部署!点赞! |
请问您解决了嘛 |
This allow export image encoder to onnx. I create a new file to export it.