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

tfjs models are working #2

Open
Jonathhhan opened this issue Jun 14, 2023 · 0 comments
Open

tfjs models are working #2

Jonathhhan opened this issue Jun 14, 2023 · 0 comments

Comments

@Jonathhhan
Copy link

Jonathhhan commented Jun 14, 2023

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

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

1 participant