01

RoadSense — Benin roads vs Cityscapes

A road dataset filmed in Cotonou and Abomey-Calavi, and one question: when a model trained on European streets gets it wrong, is it because the road looks different, or because it does not fit its definition of a road?

Road IoU 0.903 with 59 local images · B2 zero-shot: 0.880

RoadSense — Benin roads vs Cityscapes

Stack

PythonPyTorchTransformersCVAT

What happened?

  1. 01

    The question

    Do segmentation models trained on European streets work on West African roads? And when they fail, is it because the road looks different, or because it does not fit their definition of a road?

  2. 02

    The problem

    Cityscapes is European streets. Here, we ride on asphalt, pavers, sand-covered pavers and unpaved sandy roads. I wanted to know what these models are really worth at home, surface by surface.

  3. 03

    The hypothesis

    On an unpaved road, the model may see the ground perfectly well and simply not call it a road. If so, the missed pixels do not go just anywhere: they should land in one specific class. All it takes is looking at where they go.

  4. 04

    The build

    18 phone videos filmed in September and October 2026, from a motorbike (often as a passenger) and on foot. One frame per second, blurry frames and near-duplicates removed, then hand annotation in CVAT with a single rule: a road is any flat, continuous surface a motorbike or car can drive on. 63 test images from videos or time blocks never seen in training, 59 for fine-tuning. SegFormer-B0 and B2 tested zero-shot, then B0 fine-tuned in about 9 minutes on a Kaggle T4.

  5. 05

    The failure

    Asphalt did not move: 0.847 before, 0.845 after. And caution is needed: one training run, when a previous run with the same recipe differed by up to 0.03 per surface, a single annotator and 63 test images. All rain images come from one video, so weather and video cannot be separated.

  6. 06

    The discovery

    No collapse: 0.86 (B0) and 0.88 (B2) without a single local image. But on unpaved roads, most missed road pixels go to sidewalk (41% for B0, 59% for B2). The model sees a flat surface, it just does not call it a road. The problem is not only appearance, it is also definition.

  7. 07

    The result

    With 59 local images, SegFormer-B0 goes from 0.863 to 0.903 road IoU, above zero-shot B2 (0.880), a much larger model. The gain is concentrated on unpaved roads: from 0.816 to 0.904.

  8. 08

    The next frontier

    Correct the 112 pre-annotated images to train on about 170 images, plot performance against the number of annotated images over 3 seeds, compare ImageNet and Cityscapes initialisation, and check whether fine-tuning really removes the sidewalk confusion. For road condition, a first test of Qwen2.5-VL-3B on 23 pothole images detects only about 40% of them: the work is open.

Spider-Verse · homage