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

Scoring accuracy is not at par with original CLIP model #3

Open
ua741 opened this issue Oct 6, 2023 · 2 comments
Open

Scoring accuracy is not at par with original CLIP model #3

ua741 opened this issue Oct 6, 2023 · 2 comments

Comments

@ua741
Copy link

ua741 commented Oct 6, 2023

For the image of the cat, we compared the scores from the ONNX-based model with those from clip.cpp.

It appears that the ONNX model doesn't provide accurate output. Although we understand that the scores may not match exactly, the relative order should ideally be the same.

clip.cpp output

image

clip-android-demo (ONNX) output #2

image
@shubham0204
Copy link

@ua741 Are you using the int8 quantized model from clip.cpp? This repo is using int8 quantized ONNX models.

@shubham0204
Copy link

@ua741 I have created an Android app that uses JNI bindings built over clip.cpp. Check the project here: https://github.com/shubham0204/CLIP-Android

Also, here's the PR I made to clip.cpp for adding the JNI bindings: monatis/clip.cpp#101

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

No branches or pull requests

2 participants