Instructions to use zeromodels/pvt-v2-b0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ZeroModels
How to use zeromodels/pvt-v2-b0 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/pvt-v2-b0 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/pvt-v2-b0") - Notebooks
- Google Colab
- Kaggle
| { | |
| "library_name": "zeromodels", | |
| "zeromodels_version": "1.2.6", | |
| "model_module": "zeromodels.models.pvt_v2", | |
| "model_class": "PvtV2ImageClassify", | |
| "variant": "pvt-v2-b0", | |
| "weights": "model.weights.h5", | |
| "schema_version": 2, | |
| "model_type": "pvt_v2", | |
| "vision_config": { | |
| "hidden_sizes": [ | |
| 32, | |
| 64, | |
| 160, | |
| 256 | |
| ], | |
| "depths": [ | |
| 2, | |
| 2, | |
| 2, | |
| 2 | |
| ], | |
| "num_attention_heads": [ | |
| 1, | |
| 2, | |
| 5, | |
| 8 | |
| ], | |
| "sr_ratios": [ | |
| 8, | |
| 4, | |
| 2, | |
| 1 | |
| ], | |
| "mlp_ratios": [ | |
| 8, | |
| 8, | |
| 4, | |
| 4 | |
| ], | |
| "linear_attention": false, | |
| "image_size": 224, | |
| "num_classes": 1000 | |
| } | |
| } |