Downloads · 30 days
0
CienciaCiudades/yolov8-urban-segmentation
yolov8-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 repository contains a set of YOLO models trained for instance segmentation, specifically focused on the urban environment at the pedestrian level. The central objective is to automate the identification and delim…
Downloads · 30 days
0
Access
Public
Updated Jun 16, 2026
Repo size
134 MB
Likes
0
Public
Click a slice to open those files.
.pt134 MB · 100%
From the Hugging Face model README
This repository contains a set of YOLO models trained for instance segmentation, specifically focused on the urban environment at the pedestrian level. The central objective is to automate the identification and delimitation of two exact categories to calculate fundamental urban metrics:
vegetation): Used for measuring the Green View Index (GVI) on sidewalks.sky): Used for measuring the Sky View Factor (SVF).The models are designed to operate optimally on street-level images (Street View), primarily capturing sidewalks, intersections, and parks.
To build the dataset, the alivestreets tool was used, enabling the automated download of Google Street View (GSV) images.
As part of the scalability strategy, three distinct models were trained sequentially following the same data protocol. The following weights (.pt) are available in this repository:
mexicali_yolov8m.pt: Trained exclusively with the curated dataset from Mexicali.cdmx_yolov8m.pt: Trained exclusively with the curated dataset from Mexico City (CDMX).combined_yolov8s.pt: Trained by merging both datasets to evaluate the algorithm's generalization capabilities across different geographical regions. A lighter architecture (YOLOv8 small) was chosen for this model as it acted as a natural regularizer, forcing the network to learn fundamental urban features rather than memorizing parameters.The following metrics reflect the real performance of the models on the Test set (images never seen before by the algorithm).
| Model | Architecture | mAP@50 | Precision | Recall | F1-Score |
|---|---|---|---|---|---|
| Mexicali | YOLOv8m | 73.3% | 79.0% | 77.0% | 77.9% |
| CDMX | YOLOv8m | 84.1% | 79.2% | 83.6% | 81.1% |
| Combined | YOLOv8s | 79.3% | 81.7% | 76.5% | 78.9% |
| Combined | YOLOv8m | 66.4% | 83.6% | 59.4% | 68.9% |
Inference analysis revealed asymmetric performance between the detected classes. While the vegetation category showed stable behavior, the sky category presented a higher failure rate, affecting the overall mAP50.
This is primarily caused by an intrinsic class imbalance in Street View images; the pixel proportion and representation of vegetation significantly outvolume the clear sky areas visible between buildings. Due to limitations in the web training platforms used, it was not possible to apply an asymmetric penalty (modifying the cls_pw or class positive weight hyperparameter) to force the model to pay more attention to the minority class.
To bring the GVI and SVF calculations to a production level, the following steps are planned:
cls_pw to mitigate the "sky" category imbalance.