tidy icon indicating copy to clipboard operation
tidy copied to clipboard

How to export OpenCLIP models to ONNX format?

Open pntt3011 opened this issue 1 year ago • 2 comments

Hi @slavabarkov, I truly appreciate your contribution in making the CLIP model viable on Android devices.

Can I have the code you used to export the OpenCLIP model to ONNX format?

I want to export OpenCLIP's ViT-B-32 datacomp_xl_s13b_b90k model as it has higher accuracy in their benchmarks.

I also tried PicQuery code, so far it worked but the exported model was 10MB bigger than yours.

pntt3011 avatar Mar 17 '24 15:03 pntt3011

Did u find a solution?

junxiant avatar Aug 23 '24 10:08 junxiant

Maybe this can help you

https://github.com/immich-app/immich/tree/main/machine-learning%2Fexport

aviv926 avatar Aug 26 '24 08:08 aviv926