File size: 1,145 Bytes
752e57e
 
 
 
 
 
 
 
 
 
 
 
 
6ba0066
 
 
 
 
cd5886d
6ba0066
cd5886d
 
 
 
 
 
6ba0066
cd5886d
 
 
 
 
 
6ba0066
cd5886d
 
6ba0066
cd5886d
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
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.