keras / segformer_b0_ade20k_512

huggingface.co
Total runs: 80
24-hour runs: 0
7-day runs: 7
30-day runs: 37
Model's Last Updated: June 17 2025

Introduction of segformer_b0_ade20k_512

Model Details of segformer_b0_ade20k_512

Model Overview

The SegFormer model was proposed in SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers by Enze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar, Jose M. Alvarez, Ping Luo. The model consists of a hierarchical Transformer encoder and a lightweight all-MLP decode head to achieve great results on image segmentation benchmarks such as ADE20K and Cityscapes.

` Weights are released under the MIT License . Keras model code is released under the Apache 2 License .

Links
Installation

Keras and KerasCV can be installed with:

pip install -U -q keras-cv
pip install -U -q keras>=3

Jax, TensorFlow, and Torch come preinstalled in Kaggle Notebooks. For instructions on installing them in another environment see the Keras Getting Started page.

Presets

The following model checkpoints are provided by the Keras team. Full code examples for each are available below.

Preset name Parameters Description
segformer_b0_imagenet 3.72M SegFormer model with a pretrained MiTB0 backbone.
segformer_b0 3.72M SegFormer model with MiTB0 backbone.
segformer_b1 13.68M SegFormer model with MiTB1 backbone.
segformer_b2 24.73M SegFormer model with MiTB2 backbone.
segformer_b3 44.60M SegFormer model with MiTB3 backbone.
segformer_b4 61.37M SegFormer model with MiTB4 backbone.
segformer_b5 81.97M SegFormer model with MiTB5 backbone.
Example code
import keras_cv

images = np.ones(shape=(1, 224, 224, 3))
labels = np.zeros(shape=(1, 224, 224, 1))


model = keras_cv.models.SegFormer.from_preset(
            "segformer_b0", num_classes=2
        )
# Evaluate model
model(images)
Example Usage
import keras_cv
import  keras
import numpy as np

Using the class with a backbone :

import tensorflow as tf
import keras_cv

images = np.ones(shape=(1, 96, 96, 3))
labels = np.zeros(shape=(1, 96, 96, 1))
backbone = keras_cv.models.MiTBackbone.from_preset("segformer_b0_ade20k_512")
model = keras_cv.models.segmentation.SegFormer(
    num_classes=1, backbone=backbone,
)

# Evaluate model
model(images)

# Train model
model.compile(
    optimizer="adam",
    loss=keras.losses.BinaryCrossentropy(from_logits=False),
    metrics=["accuracy"],
)
model.fit(images, labels, epochs=3)
Example Usage with Hugging Face URI
import keras_cv
import  keras
import numpy as np

Using the class with a backbone :

import tensorflow as tf
import keras_cv

images = np.ones(shape=(1, 96, 96, 3))
labels = np.zeros(shape=(1, 96, 96, 1))
backbone = keras_cv.models.MiTBackbone.from_preset("hf://keras/segformer_b0_ade20k_512")
model = keras_cv.models.segmentation.SegFormer(
    num_classes=1, backbone=backbone,
)

# Evaluate model
model(images)

# Train model
model.compile(
    optimizer="adam",
    loss=keras.losses.BinaryCrossentropy(from_logits=False),
    metrics=["accuracy"],
)
model.fit(images, labels, epochs=3)

Runs of keras segformer_b0_ade20k_512 on huggingface.co

80
Total runs
0
24-hour runs
2
3-day runs
7
7-day runs
37
30-day runs

More Information About segformer_b0_ade20k_512 huggingface.co Model

segformer_b0_ade20k_512 huggingface.co

segformer_b0_ade20k_512 huggingface.co is an AI model on huggingface.co that provides segformer_b0_ade20k_512's model effect (), which can be used instantly with this keras segformer_b0_ade20k_512 model. huggingface.co supports a free trial of the segformer_b0_ade20k_512 model, and also provides paid use of the segformer_b0_ade20k_512. Support call segformer_b0_ade20k_512 model through api, including Node.js, Python, http.

segformer_b0_ade20k_512 huggingface.co Url

https://huggingface.co/keras/segformer_b0_ade20k_512

keras segformer_b0_ade20k_512 online free

segformer_b0_ade20k_512 huggingface.co is an online trial and call api platform, which integrates segformer_b0_ade20k_512's modeling effects, including api services, and provides a free online trial of segformer_b0_ade20k_512, you can try segformer_b0_ade20k_512 online for free by clicking the link below.

keras segformer_b0_ade20k_512 online free url in huggingface.co:

https://huggingface.co/keras/segformer_b0_ade20k_512

segformer_b0_ade20k_512 install

segformer_b0_ade20k_512 is an open source model from GitHub that offers a free installation service, and any user can find segformer_b0_ade20k_512 on GitHub to install. At the same time, huggingface.co provides the effect of segformer_b0_ade20k_512 install, users can directly use segformer_b0_ade20k_512 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

segformer_b0_ade20k_512 install url in huggingface.co:

https://huggingface.co/keras/segformer_b0_ade20k_512

Url of segformer_b0_ade20k_512

segformer_b0_ade20k_512 huggingface.co Url

Provider of segformer_b0_ade20k_512 huggingface.co

keras
ORGANIZATIONS

Other API from keras

huggingface.co

Total runs: 22
Run Growth: 19
Growth Rate: 86.36%
Updated:February 27 2026
huggingface.co

Total runs: 18
Run Growth: -128
Growth Rate: -711.11%
Updated:July 17 2026
huggingface.co

Total runs: 13
Run Growth: -28
Growth Rate: -215.38%
Updated:June 17 2025
huggingface.co

Total runs: 13
Run Growth: 6
Growth Rate: 46.15%
Updated:February 27 2026
huggingface.co

Total runs: 13
Run Growth: 10
Growth Rate: 76.92%
Updated:March 25 2025
huggingface.co

Total runs: 13
Run Growth: -23
Growth Rate: -176.92%
Updated:June 17 2025
huggingface.co

Total runs: 12
Run Growth: -129
Growth Rate: -1075.00%
Updated:July 17 2026
huggingface.co

Total runs: 12
Run Growth: 0
Growth Rate: 0.00%
Updated:March 25 2025
huggingface.co

Total runs: 11
Run Growth: 8
Growth Rate: 72.73%
Updated:February 27 2026
huggingface.co

Total runs: 9
Run Growth: 3
Growth Rate: 33.33%
Updated:March 25 2025
huggingface.co

Total runs: 8
Run Growth: 1
Growth Rate: 12.50%
Updated:March 25 2025
huggingface.co

Total runs: 7
Run Growth: -12
Growth Rate: -171.43%
Updated:May 15 2026
huggingface.co

Total runs: 7
Run Growth: -27
Growth Rate: -385.71%
Updated:June 17 2025
huggingface.co

Total runs: 7
Run Growth: 4
Growth Rate: 57.14%
Updated:February 27 2026
huggingface.co

Total runs: 7
Run Growth: 4
Growth Rate: 57.14%
Updated:February 27 2026
huggingface.co

Total runs: 6
Run Growth: 3
Growth Rate: 50.00%
Updated:June 17 2025
huggingface.co

Total runs: 6
Run Growth: 6
Growth Rate: 100.00%
Updated:June 17 2025