Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

zeromodels
/
segformer_b1_ade_512

Image Segmentation
ZeroModels
Keras
PyTorch
JAX
google-tensorflow TensorFlow
segformer
semantic-segmentation
ade20k
Model card Files Files and versions
xet
Community

Instructions to use zeromodels/segformer_b1_ade_512 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • ZeroModels

    How to use zeromodels/segformer_b1_ade_512 with ZeroModels:

    # pip install -U zeromodels
    # ZeroModels is pure Keras 3, so pick a backend: "jax", "torch" or "tensorflow".
    import os
    os.environ["KERAS_BACKEND"] = "jax"
    
    from zeromodels import AutoZModel
    
    # AutoZModel reads the repo's model_type and loads the matching class.
    # For a task head use the matching loader, e.g. AutoZMImageClassify / AutoZMDetect /
    # AutoZMSemanticSegment / AutoZMTextGenerate (see zeromodels.auto).
    model = AutoZModel.from_weights("zeromodels/segformer_b1_ade_512")
    
  • Keras

    How to use zeromodels/segformer_b1_ade_512 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_b1_ade_512")
    
  • Notebooks
  • Google Colab
  • Kaggle
segformer_b1_ade_512
55.4 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 11 commits
IMvision12's picture
IMvision12
Fix Collection badge link to the current zeromodels collection slug
5287492 verified 12 days ago
  • .gitattributes
    1.52 kB
    initial commit about 1 month ago
  • README.md
    5.55 kB
    Fix Collection badge link to the current zeromodels collection slug 12 days ago
  • model.weights.h5
    55.4 MB
    xet
    Upload folder using huggingface_hub about 1 month ago
  • zm_config.json
    563 Bytes
    Migrate to zeromodels (rename kf_*.json -> zm_*.json, fix refs in config + README, ensure tag + badge) 12 days ago
  • zm_preprocessor.json
    537 Bytes
    Migrate to zeromodels (rename kf_*.json -> zm_*.json, fix refs in config + README, ensure tag + badge) 12 days ago