-
Notifications
You must be signed in to change notification settings - Fork 20
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
tfjs models are working #2
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I converted your onnx models to tf saved model and with the current tfjs converter to tfjs models and it works very well. here is my code (based a lot on yours):
https://github.com/Jonathhhan/ofEmscriptenExamples/blob/main/emscriptenCLIP2/clip.js
This is how I converted the models:
tensorflowjs_converter --input_format tf_saved_model clip-text-vit-32-tf clip-text-vit-f16-tfjs --quantize_float16
tensorflowjs_converter --input_format tf_saved_model clip-image-vit-32-tf clip-image-vit-uint8-tfjs --quantize_uint8
https://huggingface.co/Jona0123456789
The text was updated successfully, but these errors were encountered: