| title: Bridge Semantic Segmentation | |
| emoji: π°οΈ | |
| colorFrom: blue | |
| colorTo: gray | |
| sdk: gradio | |
| app_file: app.py | |
| pinned: false | |
| license: apache-2.0 | |
| # Bridge Semantic Segmentation (UNet++) | |
| An interactive Hugging Face Space for segmenting bridge inspection images into: | |
| - **background** | |
| - **beton** (concrete) | |
| - **steel** | |
| > First launch may take a few minutes while the ~800MB weight file downloads from `g-loubna/bridge-unetpp`. | |
| ## Features | |
| - Colored Mask / Overlay / Raw Class Indices modes | |
| - Adjustable background transparency (Colored Mask) | |
| - Adjustable overlay opacity (Overlay) | |
| - Legend with pixel counts & percentages | |
| - Downloadable raw mask | |
| ## Files | |
| - `app.py` β Gradio interface + weight download | |
| - `inference.py` β Prediction utilities | |
| - `model.py` β Model definition/wrapper | |
| - `style.css` β Custom UI styling | |
| - `requirements.txt` β Dependencies | |
| ## Troubleshooting | |
| If build fails with a python:3.1 image again, ensure this header appears exactly as shown (no `python_version` line). Push a new commit. | |
| ## License | |
| Apache-2.0 (see header). Change `license:` field and add a LICENSE file if you prefer another license. | |