Downloads · 30 days
0
CienciaCiudades/rfdetr-urban-segmentation
rfdetr-urban-segmentation is a machine learning model from CienciaCiudades. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This model is an RF-DETR instance segmentation network specifically trained to detect and segment urban sidewalks from monocular street-level imagery (e.g., Google Street View).
Downloads · 30 days
0
Access
Public
Updated Sep 2, 2026
Repo size
134 MB
Likes
0
Public
Click a slice to open those files.
.pth134 MB · 100%
From the Hugging Face model README
This model is an RF-DETR instance segmentation network specifically trained to detect and segment urban sidewalks from monocular street-level imagery (e.g., Google Street View).
It serves as the foundational feature extractor for the Alivestreets spatial metric pipeline, where the generated pixel masks are geometrically transformed into real-world physical dimensions (meters) using ground plane homography, Oriented Bounding Boxes (OBB), and Dynamic Perspective Scale Compensation.
yolo-pipeline and ground-truth-sidewalk repositories for physical width estimation.The model was trained on a custom dataset managed via Roboflow, containing annotated instances of urban sidewalks.
The model was evaluated using the standard COCO mAP (Mean Average Precision) metric via the supervision library. It demonstrates highly robust spatial reliability for medium and large masks (which typically correspond to the main navigable sidewalk).
| Metric (COCO mAP) | Result |
|---|---|
| AP @[ IoU=0.50:0.95 | area= all ] | 0.460 |
| AP @[ IoU=0.50 | area= all ] | 0.668 |
| AP @[ IoU=0.75 | area= all ] | 0.506 |
| AP @[ IoU=0.50:0.95 | area= small ] | 0.123 |
| AP @[ IoU=0.50:0.95 | area= medium ] | 0.411 |
| AP @[ IoU=0.50:0.95 | area= large ] | 0.563 |
+0.1m physical calibration factor.You can use the model within the Alivestreets inference pipeline. Example usage requiring the custom rfdetr wrapper:
import cv2
from PIL import Image
from rfdetr import RFDETRSegSmall
# 1. Load Model
model_path = "path/to/downloaded/sidewalk_rfdetr.pth"
model = RFDETRSegSmall(pretrain_weights=model_path)
model.optimize_for_inference()
# 2. Predict
image = cv2.imread("street_view.jpg")
image_rgb = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
pil_image = Image.fromarray(image_rgb)
detections = model.predict(pil_image, threshold=0.5)
print(detections)