Skip to content

tfjs models are working #2

Open
@Jonathhhan

Description

@Jonathhhan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions