We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
OFA-Sys Chinese-CLIP Example
The text was updated successfully, but these errors were encountered:
You can convert the model into onnx: https://github.com/OFA-Sys/Chinese-CLIP/blob/master/deployment.md
You will get two models, image and text model, something lie the following:
-rw-rw-r-- 1 ubuntu ubuntu 5710116 Jul 26 02:37 vit-b-16.img.fp16.onnx -rw-rw-r-- 1 ubuntu ubuntu 172386816 Jul 26 02:37 vit-b-16.img.fp16.onnx.extra_file -rw-rw-r-- 1 ubuntu ubuntu 2910869 Jul 26 02:37 vit-b-16.txt.fp16.onnx -rw-rw-r-- 1 ubuntu ubuntu 816562176 Jul 26 02:37 vit-b-16.txt.fp16.onnx.extra_file
Then you can extract text feature using text model and image feature using image model.
After you get feature, you can use NDArray operators to calculate similarity.
NDArray
Sorry, something went wrong.
No branches or pull requests
OFA-Sys Chinese-CLIP Example
The text was updated successfully, but these errors were encountered: