Instructions to use zeromodels/metaclip2_worldwide_b32_224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ZeroModels
How to use zeromodels/metaclip2_worldwide_b32_224 with ZeroModels:
# pip install -U zeromodels # ZeroModels is pure Keras 3, so pick a backend: "jax", "torch" or "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" from zeromodels import AutoZModel # AutoZModel reads the repo's model_type and loads the matching class. # For a task head use the matching loader, e.g. AutoZMImageClassify / AutoZMDetect / # AutoZMSemanticSegment / AutoZMTextGenerate (see zeromodels.auto). model = AutoZModel.from_weights("zeromodels/metaclip2_worldwide_b32_224") - Keras
How to use zeromodels/metaclip2_worldwide_b32_224 with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://zeromodels/metaclip2_worldwide_b32_224") - Notebooks
- Google Colab
- Kaggle
File size: 133 Bytes
5f85997 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:f9b777521f1113c9a64cdbd2bccbc890c17d7b4d451777cd67839cd45760da83
size 61333880
|