SegFormer
Collection
13 items • Updated
How to use kerasformers/segformer_b5_ade_640 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
How to use kerasformers/segformer_b5_ade_640 with Keras:
# Available backend options are: "jax", "torch", "tensorflow".
import os
os.environ["KERAS_BACKEND"] = "jax"
import keras
model = keras.saving.load_model("hf://kerasformers/segformer_b5_ade_640")
Pure-Keras 3 weights for kerasformers, mirrored from the source. License: other (terms).
from kerasformers.models.segformer import SegFormerSemanticSegment
model = SegFormerSemanticSegment.from_weights("segformer_b5_ade_640")