Spaces:
Paused
Paused
Download taxonomy_mapping.py from whassan/SensorflowStudio: direct link, hf CLI and curl.
- Browser
- Download file 1.13 kB
-
https://huggingface.co/spaces/whassan/SensorflowStudio/resolve/main/taxonomy_mapping.py
- Command line
-
hf download hf://spaces/whassan/SensorflowStudio/taxonomy_mapping.py
-
curl -L -o taxonomy_mapping.py https://huggingface.co/spaces/whassan/SensorflowStudio/resolve/main/taxonomy_mapping.py
1.13 kB
| # taxonomy_mapping.py | |
| """ | |
| Mapping from YOLO detection class names to taxonomy categories defined in taxonomy.md. | |
| The mapping is intentionally simple, covering the major categories used in the platform. | |
| Add or adjust entries as needed to reflect the full taxonomy. | |
| """ | |
| TAXONOMY_MAP = { | |
| # Road Users | |
| "car": "Passenger Vehicles", | |
| "person": "Vulnerable Road Users", | |
| "pedestrian": "Vulnerable Road Users", | |
| "bicycle": "Micro-Mobility", | |
| "motorcycle": "Micro-Mobility", | |
| "truck": "Heavy & Commercial Vehicles", | |
| "bus": "Heavy & Commercial Vehicles", | |
| "emergency_vehicle": "Emergency Vehicles", | |
| "animal": "Animals", | |
| # Static Road Objects | |
| "traffic_light": "Traffic Control Elements", | |
| "stop_sign": "Traffic Control Elements", | |
| "road": "Drivable Surfaces", | |
| "lane": "Drivable Surfaces", | |
| "crosswalk": "Drivable Surfaces", | |
| "guardrail": "Physical Constraints & Barriers", | |
| "curb": "Physical Constraints & Barriers", | |
| "sidewalk": "Physical Constraints & Barriers", | |
| # Dynamic / Transitory | |
| "construction": "Temporary Infrastructure", | |
| "debris": "Uncontrolled Hazards" | |
| } | |