Instructions to use zeromodels/levit-384 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use zeromodels/levit-384 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/levit-384") - Notebooks
- Google Colab
- Kaggle
File size: 674 Bytes
be4a603 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | {
"library_name": "zeromodels",
"zeromodels_version": "1.2.7",
"preprocessor_module": "zeromodels.models.levit",
"preprocessor_class": "LevitImageProcessor",
"variant": "levit-384",
"size": {
"height": 224,
"width": 224
},
"crop_size": {
"height": 224,
"width": 224
},
"resample": "bicubic",
"do_resize": true,
"do_center_crop": false,
"do_rescale": true,
"rescale_factor": 0.00392156862745098,
"do_normalize": true,
"image_mean": [
0.485,
0.456,
0.406
],
"image_std": [
0.229,
0.224,
0.225
],
"antialias": true,
"return_tensor": true,
"data_format": null
} |