Views
No views yet
yolo-pipeline and ground-truth-sidewalk repositories for physical width estimation.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.rfdetr wrapper:1import cv2
2from PIL import Image
3from rfdetr import RFDETRSegSmall
4
5# 1. Load Model
6model_path = "path/to/downloaded/sidewalk_rfdetr.pth"
7model = RFDETRSegSmall(pretrain_weights=model_path)
8model.optimize_for_inference()
9
10# 2. Predict
11image = cv2.imread("street_view.jpg")
12image_rgb = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
13pil_image = Image.fromarray(image_rgb)
14
15detections = model.predict(pil_image, threshold=0.5)
16print(detections)