YAML Metadata
Warning:
empty or missing yaml metadata in repo card
(https://huggingface.co/docs/hub/model-cards#model-card-metadata)
Sea Ice Segmentation β Hugging Face Space
Gradio app that runs MMSegmentation SegFormer-B5 on RGB images and returns an overlayed segmentation result.
Repo layout
app.pyβ Gradio UI and inference code.requirements.txtβ Python dependencies for the Space.model/segformer_mit-b5_8xb1-160k_pre-cityscapes_seaicergb0-1024x1024.pyβ MMSeg config.iter_160000.pthβ trained checkpoint (tracked with Git LFS).
Run locally (optional)
pip install -r requirements.txt
python app.py
Deploy to Hugging Face Spaces
- Create a new Space (SDK: Gradio). CPU is fine; GPU optional for faster inference.
- Push this repo to the Space remote. Ensure LFS is enabled for the
.pth:git lfs install git lfs track "model/*.pth" git add .gitattributes model/iter_160000.pth git commit -m "Add checkpoint via LFS" git push - The Space will build and start. First cold-start may take a few minutes while installing dependencies.
Notes
- If your config defines
classesandpalette, the app will use them automatically; otherwise it falls back to generated colors. - Large input images are supported; overlay alpha can be adjusted in the UI.
- To switch checkpoints or configs, update the paths at the top of
app.py.
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
π
Ask for provider support