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:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- 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
Migrate to zeromodels (rename kf_*.json -> zm_*.json, fix refs in config + README, ensure tag + badge)
0eaf072 verified | { | |
| "library_name": "zeromodels", | |
| "zeromodels_version": "1.1.3", | |
| "preprocessor_module": "zeromodels.models.metaclip2", | |
| "preprocessor_class": "MetaClip2ImageProcessor", | |
| "variant": "metaclip2_worldwide_b32_224", | |
| "image_resolution": 224, | |
| "mean": [ | |
| 0.48145467042922974, | |
| 0.45782750844955444, | |
| 0.40821072459220886 | |
| ], | |
| "std": [ | |
| 0.2686295509338379, | |
| 0.2613025903701782, | |
| 0.27577710151672363 | |
| ], | |
| "do_center_crop": true, | |
| "do_normalize": true, | |
| "do_resize": true, | |
| "square_resize": true, | |
| "data_format": "channels_last" | |
| } |