π°οΈ mmseg-baseline (DeepLabV3+ R50 on UAV Dataset)
π§ Model Description
This model is a semantic segmentation model trained with MMSegmentation, based on:
- Architecture: DeepLabV3+
- Backbone: ResNet-50 (dilated, stride-8)
- Framework: MMSegmentation
- Input size: 512 Γ 512
- Training schedule: 80k iterations
The model is designed for urban scene understanding in UAV imagery, supporting multi-class segmentation.
π Dataset
- Dataset: UAV segmentation dataset (CamVid-style format)
- Number of classes: 12
Classes
| ID | Class |
|---|---|
| 0 | Sky |
| 1 | Building |
| 2 | Pole |
| 3 | Road |
| 4 | Pavement |
| 5 | Tree |
| 6 | SignSymbol |
| 7 | Fence |
| 8 | Car |
| 9 | Pedestrian |
| 10 | Bicyclist |
| 11 | void |
ποΈ Dataset Structure
data/uav/
βββ images/
β βββ train/
β βββ val/
βββ annotations/
β βββ train/
β βββ val/
βββ train.txt
βββ val.txt
βοΈ Training Details
Framework: MMSegmentation
Optimizer: (default from base config, typically SGD or AdamW)
Batch size: 2
Resize scale: (960, 720)
Augmentations:
- Random resize (0.5β2.0)
- Random crop (512Γ512)
- Random flip (p=0.5)
π Evaluation
- Metric: mIoU (Mean Intersection over Union)
- Evaluator: IoUMetric
β οΈ Please fill in actual results if available.
Example:
| Metric | Value |
|---|---|
| mIoU | 0.608 |
| aAcc | 0.885 |
| mAcc | 0.716 |
π Usage
1οΈβ£ Download model
from huggingface_hub import snapshot_download
snapshot_download(
repo_id="Thengy/mmseg-baseline",
local_dir="model"
)
2οΈβ£ Inference with MMSegmentation
from mmseg.apis import init_model, inference_model
config = "config.py"
checkpoint = "checkpoints/iter_80000.pth"
model = init_model(config, checkpoint, device="cuda:0")
result = inference_model(model, "demo.jpg")
π§ͺ Training
To reproduce training:
cd mmsegmentation
python tools/train.py path/to/config.py
β οΈ Limitations
Performance may degrade under:
- unseen environments
- different UAV altitudes or camera angles
Sensitive to annotation noise
Limited generalization outside training domain
π License
MIT
π Author
- Author: ThengAndrew
- Date: 2026-04-30
π Notes
The configuration is adapted from:
- DeepLabV3+ R50 MMSegmentation baseline
Ensure consistency between:
num_classes- dataset annotations
- label encoding
π· Example Results
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support
