Datasets:
Bappadala Rohith Kumar Naidu commited on
Commit ·
93d3cf7
1
Parent(s): 34518f8
chore: rename SafeVisionAI to SafeVixAI across dataset hub
Browse filesFiles changed (13)
- README.md+11-11
- data/chatbot_service/data/legal/motor_vehicles_act_1988_summary.txt+1-1
- notebooks/ChromaDB_RAG_Vectorstore_Build_chatbot_service_data_chroma_db_2.ipynb+1-1
- notebooks/README.md+6-6
- notebooks/Risk_Model_ONNX_Training_frontend_public_models_5.ipynb+1-1
- notebooks/Roads_Data_Processing_backend_data_4.ipynb+1-1
- requirements.txt+1-1
- scripts/README.md+6-6
- scripts/backend/data/prepare_road_sources.py+1-1
- scripts/backend/data/road_sources.json+2-2
- scripts/chatbot_service/data/_overpass_utils.py+1-1
- scripts/scripts/data/_overpass_utils.py+1-1
- scripts/scripts/data/download_legal_pdfs.py+1-1
12 unmodified lines131415161718192021222324252627283 unmodified lines3233343536373839404142431 unmodified line4546474849505130 unmodified lines8283848586878810 unmodified lines9910010110210310410510610710810911011111212 unmodified lines- traffic-law- geospatial- ragpretty_name: SafeVisionAI Dataset Hubsize_categories:- 1B<n<10B---# SafeVisionAI Dataset Hub 🛡️> The **Intelligence Layer** for the SafeVisionAI platform — IIT Madras Road Safety Hackathon 2026This repository hosts all datasets, pre-trained models, notebooks, and **reproducible data acquisition scripts** that power the SafeVisionAI application. It is designed to be cloned directly into Google Colab or any research environment.**Main Application Repo:** [SafeVision-AI/SafeVision-AI](https://github.com/SafeVision-AI/SafeVision-AI)3 unmodified lines```python# Clone the entire intelligence layer!git clone https://huggingface.co/datasets/rohith083/SafeVisionAI-Dataset-Hub /content/data# Symlink into the app structureimport osos.makedirs("/content/SafeVisionAI/chatbot_service", exist_ok=True)!ln -sfn /content/data/data/chatbot_service/data /content/SafeVisionAI/chatbot_service/data```---1 unmodified line## 📦 Repository Structure```SafeVisionAI-Dataset-Hub/├── data/ ← 3.6 GB of raw intelligence data│ ├── chatbot_service/data/ ← Legal PDFs, GIS CSVs, accident data, models│ └── backend/datasets/ ← Challan rules, road infrastructure30 unmodified lines```scripts/├── scripts/data/ ← from SafeVisionAI/scripts/data/│ ├── _overpass_utils.py ← Core GIS utility (basic version)│ ├── fetch_hospitals.py ← Hospital data from OpenStreetMap│ ├── fetch_police.py ← Police station data10 unmodified lines│ ├── check_all_scripts.py ← Script syntax validator│ └── setup_kaggle.ps1 ← Kaggle API auth setup│├── backend/data/ ← from SafeVisionAI/backend/scripts/data/│ ├── seed_violations.py ← Traffic fine normalizer (MVA 2019)│ ├── prepare_road_sources.py ← CSV/GeoJSON → LineString converter│ ├── sample_pmgsy.py ← PMGSY 867K roads sampler│ ├── road_sources.example.json ← Manifest template│ └── road_sources.json ← Active road source manifest│└── chatbot_service/data/ ← from SafeVisionAI/chatbot_service/scripts/data/├── _overpass_utils.py ← Pro GIS utility (with retries + backoff)├── fetch_hospitals.py ← Pro hospital fetcher├── fetch_police.py ← Pro police fetcher12 unmodified lines131415161718192021222324252627283 unmodified lines3233343536373839404142431 unmodified line4546474849505130 unmodified lines8283848586878810 unmodified lines9910010110210310410510610710810911011111212 unmodified lines- traffic-law- geospatial- ragpretty_name: SafeVixAI Dataset Hubsize_categories:- 1B<n<10B---# SafeVixAI Dataset Hub 🛡️> The **Intelligence Layer** for the SafeVixAI platform — IIT Madras Road Safety Hackathon 2026This repository hosts all datasets, pre-trained models, notebooks, and **reproducible data acquisition scripts** that power the SafeVixAI application. It is designed to be cloned directly into Google Colab or any research environment.**Main Application Repo:** [SafeVision-AI/SafeVision-AI](https://github.com/SafeVision-AI/SafeVision-AI)3 unmodified lines```python# Clone the entire intelligence layer!git clone https://huggingface.co/datasets/rohith083/SafeVixAI-Dataset-Hub /content/data# Symlink into the app structureimport osos.makedirs("/content/SafeVixAI/chatbot_service", exist_ok=True)!ln -sfn /content/data/data/chatbot_service/data /content/SafeVixAI/chatbot_service/data```---1 unmodified line## 📦 Repository Structure```SafeVixAI-Dataset-Hub/├── data/ ← 3.6 GB of raw intelligence data│ ├── chatbot_service/data/ ← Legal PDFs, GIS CSVs, accident data, models│ └── backend/datasets/ ← Challan rules, road infrastructure30 unmodified lines```scripts/├── scripts/data/ ← from SafeVixAI/scripts/data/│ ├── _overpass_utils.py ← Core GIS utility (basic version)│ ├── fetch_hospitals.py ← Hospital data from OpenStreetMap│ ├── fetch_police.py ← Police station data10 unmodified lines│ ├── check_all_scripts.py ← Script syntax validator│ └── setup_kaggle.ps1 ← Kaggle API auth setup│├── backend/data/ ← from SafeVixAI/backend/scripts/data/│ ├── seed_violations.py ← Traffic fine normalizer (MVA 2019)│ ├── prepare_road_sources.py ← CSV/GeoJSON → LineString converter│ ├── sample_pmgsy.py ← PMGSY 867K roads sampler│ ├── road_sources.example.json ← Manifest template│ └── road_sources.json ← Active road source manifest│└── chatbot_service/data/ ← from SafeVixAI/chatbot_service/scripts/data/├── _overpass_utils.py ← Pro GIS utility (with retries + backoff)├── fetch_hospitals.py ← Pro hospital fetcher├── fetch_police.py ← Pro police fetcher
385 unmodified lines386387388389390385 unmodified linesFor official notifications: https://morth.nic.inFor traffic violation information: https://parivahan.gov.in/echallanThis summary is intended for the RoadSoS RAG knowledge base to answer user queries about traffic laws and road safety regulations in India."""385 unmodified lines386387388389390385 unmodified linesFor official notifications: https://morth.nic.inFor traffic violation information: https://parivahan.gov.in/echallanThis summary is intended for the SafeVixAI RAG knowledge base to answer user queries about traffic laws and road safety regulations in India."""
10 unmodified lines1112131415161710 unmodified lines"\n","**Output:** `chroma_db/` directory -> deployed to `chatbot_service/data/chroma_db/`\n","\n","This notebook builds the **Retrieval-Augmented Generation (RAG)** knowledge base for the SafeVisionAI chatbot.\n","It ingests Indian legal documents and first-aid medical PDFs, chunks them, embeds them, and stores them in a **ChromaDB** vector store.\n","\n","---\n",10 unmodified lines1112131415161710 unmodified lines"\n","**Output:** `chroma_db/` directory -> deployed to `chatbot_service/data/chroma_db/`\n","\n","This notebook builds the **Retrieval-Augmented Generation (RAG)** knowledge base for the SafeVixAI chatbot.\n","It ingests Indian legal documents and first-aid medical PDFs, chunks them, embeds them, and stores them in a **ChromaDB** vector store.\n","\n","---\n",
1234563 unmodified lines1011121314151659 unmodified lines7677787980818283848586# SafeVisionAI — Research Notebooks 📓These notebooks are the **research and training layer** of SafeVisionAI. Each one processes raw data from the Hub and produces a model, index, or processed dataset used by the live application.---3 unmodified lines```python# Step 1 — Clone the Hub (only run once per session)!git clone https://huggingface.co/datasets/rohith083/SafeVisionAI-Dataset-Hub /content/hub# Step 2 — Install dependencies!pip install -q pdfplumber chromadb sentence-transformers ultralytics onnx59 unmodified linesos.environ["HUGGING_FACE_TOKEN"] = "your_token_here"!cd /content/hub && git config user.email "you@example.com"!cd /content/hub && git config user.name "SafeVisionAI"!cd /content/hub && git add . && git commit -m "chore: update trained model outputs"!cd /content/hub && git push https://your_username:$HUGGING_FACE_TOKEN@huggingface.co/datasets/rohith083/SafeVisionAI-Dataset-Hub main```---*Part of the [SafeVisionAI](https://github.com/SafeVision-AI/SafeVision-AI) — IIT Madras Road Safety Hackathon 2026*1234563 unmodified lines1011121314151659 unmodified lines7677787980818283848586# SafeVixAI — Research Notebooks 📓These notebooks are the **research and training layer** of SafeVixAI. Each one processes raw data from the Hub and produces a model, index, or processed dataset used by the live application.---3 unmodified lines```python# Step 1 — Clone the Hub (only run once per session)!git clone https://huggingface.co/datasets/rohith083/SafeVixAI-Dataset-Hub /content/hub# Step 2 — Install dependencies!pip install -q pdfplumber chromadb sentence-transformers ultralytics onnx59 unmodified linesos.environ["HUGGING_FACE_TOKEN"] = "your_token_here"!cd /content/hub && git config user.email "you@example.com"!cd /content/hub && git config user.name "SafeVixAI"!cd /content/hub && git add . && git commit -m "chore: update trained model outputs"!cd /content/hub && git push https://your_username:$HUGGING_FACE_TOKEN@huggingface.co/datasets/rohith083/SafeVixAI-Dataset-Hub main```---*Part of the [SafeVixAI](https://github.com/SafeVision-AI/SafeVision-AI) — IIT Madras Road Safety Hackathon 2026*
25 unmodified lines2627282930313225 unmodified lines"### Pipeline\n","Synthetic data generation -> GBM training -> ONNX conversion -> Download\n","\n","> The model runs entirely client-side in the SafeVisionAI PWA using onnxruntime-web."]},{25 unmodified lines2627282930313225 unmodified lines"### Pipeline\n","Synthetic data generation -> GBM training -> ONNX conversion -> Download\n","\n","> The model runs entirely client-side in the SafeVixAI PWA using onnxruntime-web."]},{
8 unmodified lines91011121314158 unmodified lines"**Output:** `toll_plazas_lite.json` -> deployed to `backend/data/roads/`\n","\n","This notebook processes the **NHAI Toll Plaza dataset** to produce a lightweight JSON\n","suitable for the SafeVisionAI backend API and offline PWA map layer.\n","\n","---\n","### Dataset\n",8 unmodified lines91011121314158 unmodified lines"**Output:** `toll_plazas_lite.json` -> deployed to `backend/data/roads/`\n","\n","This notebook processes the **NHAI Toll Plaza dataset** to produce a lightweight JSON\n","suitable for the SafeVixAI backend API and offline PWA map layer.\n","\n","---\n","### Dataset\n",
1234# SafeVisionAI Dataset Hub — Script Dependencies# Install with: pip install -r requirements.txt# ── Core (all scripts) ────────────────────────────────────────1234# SafeVixAI Dataset Hub — Script Dependencies# Install with: pip install -r requirements.txt# ── Core (all scripts) ────────────────────────────────────────
1234567891 unmodified line111213141516176 unmodified lines24252627282930313233343536# SafeVisionAI — Data Acquisition Scripts 🔬These scripts are the **raw data pipeline** that built the 3.6GB SafeVisionAI dataset.All scripts here are **pure Python** — they require no database, no Redis, no PostGIS.> Scripts are mirrored from the [SafeVisionAI main repo](https://github.com/SafeVision-AI/SafeVision-AI) and organized by their origin folder.---1 unmodified line```scripts/├── scripts/data/ ← from SafeVisionAI/scripts/data/│ ├── fetch_*.py ← Overpass GIS fetchers (basic version)│ ├── _overpass_utils.py ← Core GIS utility│ ├── download_legal_pdfs.py6 unmodified lines│ ├── check_all_scripts.py│ └── setup_kaggle.ps1│├── backend/data/ ← from SafeVisionAI/backend/scripts/data/│ ├── seed_violations.py ← MVA 2019 traffic fine normalizer│ ├── prepare_road_sources.py│ ├── sample_pmgsy.py│ └── road_sources.example.json│└── chatbot_service/data/ ← from SafeVisionAI/chatbot_service/scripts/data/├── _overpass_utils.py ← ⭐ Pro version (retries + backoff)└── fetch_*.py ← ⭐ Pro fetchers (use these over scripts/data/)```1234567891 unmodified line111213141516176 unmodified lines24252627282930313233343536# SafeVixAI — Data Acquisition Scripts 🔬These scripts are the **raw data pipeline** that built the 3.6GB SafeVixAI dataset.All scripts here are **pure Python** — they require no database, no Redis, no PostGIS.> Scripts are mirrored from the [SafeVixAI main repo](https://github.com/SafeVision-AI/SafeVision-AI) and organized by their origin folder.---1 unmodified line```scripts/├── scripts/data/ ← from SafeVixAI/scripts/data/│ ├── fetch_*.py ← Overpass GIS fetchers (basic version)│ ├── _overpass_utils.py ← Core GIS utility│ ├── download_legal_pdfs.py6 unmodified lines│ ├── check_all_scripts.py│ └── setup_kaggle.ps1│├── backend/data/ ← from SafeVixAI/backend/scripts/data/│ ├── seed_violations.py ← MVA 2019 traffic fine normalizer│ ├── prepare_road_sources.py│ ├── sample_pmgsy.py│ └── road_sources.example.json│└── chatbot_service/data/ ← from SafeVixAI/chatbot_service/scripts/data/├── _overpass_utils.py ← ⭐ Pro version (retries + backoff)└── fetch_*.py ← ⭐ Pro fetchers (use these over scripts/data/)```
24 unmodified lines2526272829303124 unmodified linesimport sysfrom pathlib import PathROOT = Path(__file__).resolve().parents[1] # SafeVisionAI/backend/CHATBOT_DATA = ROOT.parent / "chatbot_service" / "data"OUT_DIR = ROOT / "datasets" / "roads"OUT_DIR.mkdir(parents=True, exist_ok=True)24 unmodified lines2526272829303124 unmodified linesimport sysfrom pathlib import PathROOT = Path(__file__).resolve().parents[1] # SafeVixAI/backend/CHATBOT_DATA = ROOT.parent / "chatbot_service" / "data"OUT_DIR = ROOT / "datasets" / "roads"OUT_DIR.mkdir(parents=True, exist_ok=True)
123version https://git-lfs.github.com/spec/v1oid sha256:b0a729760cda438188c0c7f10f82e16ea5ce04aa83d71f48fc80ae64c6468c62size 731123version https://git-lfs.github.com/spec/v1oid sha256:0fab7e082337cf00095f344c3636dabf47e25f2993db379567f53310cd2b6e43size 725
19 unmodified lines2021222324252619 unmodified lines)DEFAULT_HEADERS = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8','User-Agent': 'SafeVisionAI chatbot data fetcher/1.0',}CSV_COLUMNS = ['name',19 unmodified lines2021222324252619 unmodified lines)DEFAULT_HEADERS = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8','User-Agent': 'SafeVixAI chatbot data fetcher/1.0',}CSV_COLUMNS = ['name',
15 unmodified lines1617181920212215 unmodified lines)DEFAULT_HEADERS = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8','User-Agent': 'SafeVisionAI bootstrap scripts/1.0',}CSV_COLUMNS = ['osm_id',15 unmodified lines1617181920212215 unmodified lines)DEFAULT_HEADERS = {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8','User-Agent': 'SafeVixAI bootstrap scripts/1.0',}CSV_COLUMNS = ['osm_id',
79 unmodified lines8081828384858679 unmodified linesreq = urllib.request.Request(url,headers={"User-Agent": "Mozilla/5.0 (RoadSoS-DataPipeline/1.0; +https://github.com)"},)with urllib.request.urlopen(req, timeout=60) as response:79 unmodified lines8081828384858679 unmodified linesreq = urllib.request.Request(url,headers={"User-Agent": "Mozilla/5.0 (SafeVixAI-DataPipeline/1.0; +https://github.com)"},)with urllib.request.urlopen(req, timeout=60) as response:
README.md+11-11
data/chatbot_service/data/legal/motor_vehicles_act_1988_summary.txt+1-1
notebooks/ChromaDB_RAG_Vectorstore_Build_chatbot_service_data_chroma_db_2.ipynb+1-1
notebooks/README.md+6-6
notebooks/Risk_Model_ONNX_Training_frontend_public_models_5.ipynb+1-1
notebooks/Roads_Data_Processing_backend_data_4.ipynb+1-1
requirements.txt+1-1
scripts/README.md+6-6
scripts/backend/data/prepare_road_sources.py+1-1
scripts/backend/data/road_sources.json+2-2
scripts/chatbot_service/data/_overpass_utils.py+1-1
scripts/scripts/data/_overpass_utils.py+1-1
scripts/scripts/data/download_legal_pdfs.py+1-1