Sidewalk Obstacle Geolocation — model weights
Weights for the pipeline in wahyunanandika/sidewalk-obstacle-geolocation: detect sidewalk obstacles in a smartphone photo and place them on a map using only the photo's EXIF.
| File | Model | Task | Notes |
|---|---|---|---|
segformer_final.ckpt | SegFormer-B0 (PyTorch Lightning checkpoint) | Sidewalk segmentation (background / sidewalk), 512×512 | Last checkpoint (epoch 20), used for all published results. Best val loss during training: 0.076 (epoch 10) |
yolo-obstacle-detection.pt | YOLO11s (Ultralytics) | 13 obstacle classes, 1024×1024 | mAP50 0.627, mAP50-95 0.329 (val, best epoch 28) |
YOLO classes: Guiding Block, bench, bicycle, blockade, bollard, car, cone, construction, fire hydrant, motorcycle, pole, street-vendor, tree-trunk.
Usage
from huggingface_hub import hf_hub_download
seg_ckpt = hf_hub_download("wahyunan/sidewalk-obstacle-geolocation", "segformer_final.ckpt")
yolo_pt = hf_hub_download("wahyunan/sidewalk-obstacle-geolocation", "yolo-obstacle-detection.pt")
- SegFormer: load with the
SegformerFinetunerclass from the GitHub repo andtransformers==4.57.6(SegFormer layer names changed in transformers 5.x). - YOLO:
from ultralytics import YOLO; YOLO(yolo_pt).
Limitations
- Low recall for Guiding Block (0.32), pole (0.32), tree-trunk (0.47).
- Small validation set (83 images); per-class metrics are noisy.
- SegFormer test-set IoU not yet evaluated.
- Trained on Indonesian street imagery.
License
AGPL-3.0. YOLO weights fine-tuned with Ultralytics fall under AGPL-3.0 per the Ultralytics license.