Evaluation

Matching protocol#

streetnet eval (streetnet/evaluate.py) benchmarks a predicted asset map against municipal reference points inside a defined evaluation region:

region      union of 15 m disks around the evaluation region centers (camera positions)
for each class c and matching radius R in {2, 3, 5} m:
    candidate edges   all (prediction, reference) pairs of class c with distance < R (reference anywhere on map)
    assignment        maximum-cardinality, minimum-distance one-to-one matching within each connected
                      component of the candidate bipartite graph (Hungarian algorithm)
    TP  matched pairs whose reference point lies inside the region
    FP  unmatched predictions inside the region
    FN  unmatched reference points inside the region
    matched pairs whose reference lies outside the region and unmatched exterior predictions are ignored
precision = TP / (TP + FP);  recall = TP / (TP + FN);  F1 = 2 * precision * recall / (precision + recall)
F1 is n/a if a class has no predictions or no reference points in the region, and 0 if both exist with TP = 0
micro aggregate: sum TP, FP, and FN across classes;  macro F1: mean F1 over classes with defined F1
median error: median Euclidean distance over pairs matched within 5 m

Allowing candidate matches to reference points outside the region prevents boundary artifacts where an asset near the edge of the test region matches a reference point just outside it.

Municipal reference layers and geodetic alignment#

Reference layers are drawn from NYC Open Data. Several datasets are incomplete, dated, or derived from road-centerline work orders, so valid detections absent from a municipal layer count as false positives under raw registry matching. In addition, NYC GIS layers are surveyed in NAD83(2011) (EPSG:6318) whereas Street View poses lie in ITRF2020/WGS 84 (EPSG:9989), creating a systematic horizontal shift of 1.05 m in Manhattan (dx = -0.349 m, dy = +0.993 m). Pass --gt-datum nad83 to streetnet eval to apply the official PROJ NAD83(2011)-to-ITRF2020 transformation automatically; aligning this datum offset lifts tight 2 m F1 on the eight surveyed inventories by +14.6 points and halves near-field curb ranging error.

Pilot benchmark and label-blind visual audit#

On the held-out Upper Manhattan pilot test region (9,652 panoramas, 31,562 datum-aligned municipal reference points), StreetNet achieves:

NYC Open Data reference layers#

ClassDatasetAgencyIDCoverage
Street tree2015 Street Tree Census - Tree DataParksuvpi-gqnh2015 census
Curb rampPedestrian Ramp LocationsDOTufzp-rrqu2019 survey
Fire hydrantHydrantsDEP5bgh-vtsnFull inventory
Catch basinNYCDEP Citywide Catch BasinsDEP2w2g-fk3iFull inventory
Traffic signStreet Sign Work Orders (current records)DOTqt6m-xctnWork-order records (partial)
Sign poleStreet Sign Work Orders (sign positions)DOTqt6m-xctnWork-order records (partial)
Street lightStreet Sign Work Orders; Mobile Telecom Franchise Pole ReservationsDOT; OTIqt6m-xctn; tbgj-tdd6Partial
Trash canDSNY Litter Basket InventoryDSNY8znf-7b2cCity-managed litter baskets
Bike rackBicycle ParkingDOT592z-n7dkCity-installed racks
BenchSeating LocationsDOTesmy-s8q5City-installed seating
Bus shelterBus Stop SheltersDOTt4f2-8md7Full inventory
Parking meterParking Meters Locations and StatusDOT693u-uax6Full inventory
LinkNYC kioskLinkNYC Kiosk LocationsOTIs4kf-3yrfFull inventory
Fire alarm boxIn-Service Alarm Box LocationsFDNYv57i-gtxb2019 inventory

Eight classes (manhole covers, bollards, barriers, planters, mailboxes, bus stop signs, traffic signals, and bike-share docks) lack comparable municipal point layers and are omitted from the accuracy table.

Evaluation region#

Per-class fusion and verification parameters were selected on the 478-panorama development split of the 10,180-panorama Upper Manhattan pilot study. The evaluation region lies within the pilot footprint while remaining strictly disjoint from the development split:

centers = mapped panoramas within 20 m of a pilot panorama
          and at least 30 m from every development-split panorama
          (ensuring 15 m evaluation disks do not overlap the development split)

Both the evaluation region centers (eval/region_centers.parquet) and reference points (eval/ground_truth.parquet) are distributed with the dataset.

Results#

Accuracy of the published citywide map at a 3 m matching radius:

ClassGround truthPredictedPrecisionRecallF1Median error (m)
Street tree9,82113,9530.5200.7300.6071.41
Traffic sign6,3335,9790.1570.1480.1532.37
Sign pole3,3954,1190.0690.0830.0752.49
Curb ramp2,9622,2120.7590.5620.6461.19
Street light2,4053,3130.1460.2010.1691.48
Catch basin1,5887840.2960.1460.1961.47
Fire hydrant1,4467970.4230.2330.3012.25
Bike rack8171880.2170.0500.0821.21
Trash can4001,0860.0810.2200.1192.13
Fire alarm box195500.0000.0000.000n/a
Parking meter1862690.1470.2150.1752.21
LinkNYC kiosk109350.4570.1470.2221.28
Bench1061,3550.0420.5380.0781.46
Bus shelter105820.3540.2760.3102.71
All classes29,86834,2220.3340.3810.356

To reproduce evaluation directly from a published dataset:

hf download mehmetkeremturkcan/streetnet-nyc --repo-type dataset --local-dir streetnet-nyc
cd streetnet-nyc
streetnet eval --map data/assets.parquet --gt eval/ground_truth.parquet \
    --region-centers eval/region_centers.parquet --gt-datum nad83 --out metrics.json

Source: docs/evaluation.md. Project page.