Image Segmentation
ZeroModels
Keras
PyTorch
JAX
TensorFlow
segformer
semantic-segmentation
cityscapes
Instructions to use zeromodels/segformer_b3_cityscapes_1024 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ZeroModels
How to use zeromodels/segformer_b3_cityscapes_1024 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/segformer_b3_cityscapes_1024 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/segformer_b3_cityscapes_1024") - Notebooks
- Google Colab
- Kaggle
Migrate to zeromodels (rename kf_*.json -> zm_*.json, fix refs in config + README, ensure tag + badge)
43d2581 verified | { | |
| "library_name": "zeromodels", | |
| "zeromodels_version": "1.2.1", | |
| "model_module": "zeromodels.models.segformer", | |
| "model_class": "SegFormerSemanticSegment", | |
| "variant": "segformer_b3_cityscapes_1024", | |
| "weights": "model.weights.h5", | |
| "schema_version": 2, | |
| "weight_dtype": "float32", | |
| "model_type": "segformer", | |
| "vision_config": { | |
| "embed_dim": [ | |
| 64, | |
| 128, | |
| 320, | |
| 512 | |
| ], | |
| "depths": [ | |
| 3, | |
| 4, | |
| 18, | |
| 3 | |
| ], | |
| "decode_head_dim": 768, | |
| "dropout_rate": 0.1, | |
| "num_classes": 19, | |
| "image_size": 1024 | |
| } | |
| } |