Spaces:
Running on Zero
Running on Zero
Download src/accident/__init__.py from vish07anth/ATA: direct link, hf CLI and curl.
- Browser
- Download file 706 Bytes
-
https://huggingface.co/spaces/vish07anth/ATA/resolve/main/src/accident/__init__.py
- Command line
-
hf download hf://spaces/vish07anth/ATA/src/accident/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/vish07anth/ATA/resolve/main/src/accident/__init__.py
706 Bytes
| """Member 4 Phase 5 — Accident Detection. | |
| Scope: | |
| - Object-level accident detection on the CCTV accident dataset. | |
| - Uses torchvision Faster R-CNN with a MobileNetV3-320 backbone for CPU training. | |
| - Preserves original Parquet files as canonical data source. | |
| Explicitly excluded in this phase: | |
| - Near-miss model modification. | |
| - Risk fusion / risk engine. | |
| - Confidence calibration (detector confidence is not a calibrated probability). | |
| - Member 5 integration. | |
| - Traffic signal control. | |
| - Ambulance logic. | |
| - SUMO integration. | |
| - Final API. | |
| """ | |
| RANDOM_SEED = 42 | |
| CLASS_ID_ACCIDENT = 0 | |
| CLASS_ID_NON_ACCIDENT = 1 | |
| CLASS_NAMES = { | |
| CLASS_ID_ACCIDENT: "accident", | |
| CLASS_ID_NON_ACCIDENT: "non_accident", | |
| } | |