Instructions to use zeromodels/clip_vit_bigg_14 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasFormers
How to use zeromodels/clip_vit_bigg_14 with KerasFormers:
# 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/clip_vit_bigg_14 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/clip_vit_bigg_14") - Notebooks
- Google Colab
- Kaggle
Upload kf_preprocessor.json with huggingface_hub
Browse files- kf_preprocessor.json +22 -0
kf_preprocessor.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"library_name": "kerasformers",
|
| 3 |
+
"kerasformers_version": "1.1.3",
|
| 4 |
+
"preprocessor_module": "kerasformers.models.clip",
|
| 5 |
+
"preprocessor_class": "CLIPImageProcessor",
|
| 6 |
+
"variant": "clip_vit_bigg_14",
|
| 7 |
+
"image_resolution": 224,
|
| 8 |
+
"mean": [
|
| 9 |
+
0.48145467042922974,
|
| 10 |
+
0.45782750844955444,
|
| 11 |
+
0.40821072459220886
|
| 12 |
+
],
|
| 13 |
+
"std": [
|
| 14 |
+
0.2686295509338379,
|
| 15 |
+
0.2613025903701782,
|
| 16 |
+
0.27577710151672363
|
| 17 |
+
],
|
| 18 |
+
"do_center_crop": true,
|
| 19 |
+
"do_normalize": true,
|
| 20 |
+
"do_resize": true,
|
| 21 |
+
"data_format": "channels_last"
|
| 22 |
+
}
|