shivamthirdeye commited on
Commit
1cacb38
Β·
verified Β·
1 Parent(s): 745b5e9

docs: update dataset structure section to reflect tar shard format, remove masks/ reference

Browse files
Files changed (1) hide show
  1. README.md +69 -106
README.md CHANGED
@@ -3,12 +3,8 @@ license: cc-by-4.0
3
  task_categories:
4
  - object-detection
5
  - image-segmentation
6
-
7
- - other
8
  task_ids:
9
  - vehicle-detection
10
- language:
11
- - en
12
  tags:
13
  - autonomous-driving
14
  - indian-roads
@@ -16,9 +12,6 @@ tags:
16
  - bdd100k
17
  - computer-vision
18
  - detection
19
- - segmentation
20
- - tracking
21
- - gps
22
  pretty_name: Indian Road Driving Dataset
23
  size_categories:
24
  - 100K<n<1M
@@ -26,85 +19,71 @@ size_categories:
26
 
27
  # πŸš— Indian Road Driving Dataset
28
 
29
- <div align="center">
30
-
31
- **by [ThirdEye Labs](https://thirdeyelabs.ai)**
32
-
33
- [![Website](https://img.shields.io/badge/Website-thirdeyelabs.ai-blue?style=for-the-badge)](https://thirdeyelabs.ai)
34
- [![Demo](https://img.shields.io/badge/Live_Demo-View_Now-orange?style=for-the-badge)](https://thirdeyelabs.ai/demo)
35
- [![License](https://img.shields.io/badge/License-CC_BY_4.0-green?style=for-the-badge)](https://creativecommons.org/licenses/by/4.0/)
36
-
37
- *The largest open dataset of annotated Indian road footage β€” captured, processed, and released by ThirdEye Labs.*
38
-
39
- </div>
40
 
41
  ---
42
 
43
  ## 🌍 Why Indian Roads?
44
 
45
- Indian roads are among the most complex driving environments in the world β€” dense mixed traffic, unpredictable pedestrian behaviour, auto-rickshaws, cattle, informal lane usage, and extreme lighting conditions. Yet virtually no large-scale annotated dataset exists for this domain.
46
-
47
- Existing datasets (BDD100K, nuScenes, Waymo) are dominated by Western and East Asian road conditions. Models trained on them fail to generalise to India's 63 million vehicles and 1.4 billion people.
48
-
49
- **We built this dataset to change that.**
50
 
51
  ---
52
 
53
- ## πŸ“Š Dataset at a Glance
54
 
55
  | Metric | Value |
56
  |--------|-------|
57
- | Total clips | 8,441 |
58
- | Annotated frames | 646,014 |
59
- | Object detections | 6,896,202 |
60
- | Segmentation masks | 1,290,463 |
61
- | GPS-tagged frames | βœ… |
62
- | Annotation format | BDD100K |
63
- | Capture device | CP Plus dashcam |
64
- | Location | Delhi NCR, India |
65
- | Conditions | Day Β· Night Β· Dusk Β· Rain |
66
 
67
  ---
68
 
69
- ## 🏷️ Detection Classes
70
-
71
- 12 classes purpose-built for Indian roads:
72
-
73
- | Class | Description |
74
- |---|---|
75
- | `person` | Pedestrians |
76
- | `rider` | Motorcyclists / cyclists with rider |
77
- | `car` | Passenger cars |
78
- | `truck` | Trucks and tempos |
79
- | `bus` | Buses |
80
- | `motorcycle` | Motorcycles (unridden) |
81
- | `bicycle` | Bicycles |
82
- | `autorickshaw` | Auto-rickshaws (tuk-tuks) |
83
- | `animal` | Cattle, dogs, and other animals on road |
84
- | `vehicle fallback` | Unclassified vehicles |
85
- | `traffic light` | Traffic signals |
86
- | `traffic sign` | Road signs and boards |
87
 
88
  ---
89
 
90
  ## πŸ“ Dataset Structure
91
 
 
 
92
  ```
93
- indian-road-dataset/
94
- β”œβ”€β”€ images/
95
- β”‚ └── {clip_id}/
96
- β”‚ β”œβ”€β”€ 0000.jpg
97
- β”‚ β”œβ”€β”€ 0001.jpg
98
- β”‚ └── ...
99
- β”œβ”€β”€ annotations/
100
- β”‚ β”œβ”€β”€ detection.json # BDD100K format
101
- β”‚ β”œβ”€β”€ tracking.json # Multi-object tracking
102
- β”‚ └── scene_attributes.json # Weather, time of day, scene type
103
- β”œβ”€β”€ masks/
104
- β”‚ └── {clip_id}/
105
- β”‚ └── {frame}.png # Semantic segmentation masks
106
- └── gps/
107
- └── gps_tracks.json # GPS coordinates per clip
108
  ```
109
 
110
  ---
@@ -117,6 +96,8 @@ indian-road-dataset/
117
  from datasets import load_dataset
118
 
119
  ds = load_dataset("thirdeyelabs/indian-road-dataset")
 
 
120
  ```
121
 
122
  ### Load annotations directly
@@ -127,7 +108,7 @@ import json
127
  with open("annotations/detection.json") as f:
128
  annotations = json.load(f)
129
 
130
- # BDD100K format β€” each entry has:
131
  # { "name": "clip_id/frame", "labels": [{ "category": "car", "box2d": {...} }] }
132
  ```
133
 
@@ -139,9 +120,7 @@ huggingface-cli download thirdeyelabs/indian-road-dataset --repo-type dataset
139
 
140
  ---
141
 
142
- ## πŸ“ Annotation Format
143
-
144
- Annotations follow the [BDD100K](https://doc.bdd100k.com/format.html) schema:
145
 
146
  ```json
147
  {
@@ -168,50 +147,32 @@ Annotations follow the [BDD100K](https://doc.bdd100k.com/format.html) schema:
168
 
169
  ## πŸ—ΊοΈ GPS Coverage
170
 
171
- Every clip is linked to GPS coordinates where available, enabling:
172
- - Geographic filtering by route / area
173
  - Speed and trajectory analysis
174
  - Map-based dataset exploration
175
 
176
  ---
177
 
178
- ## πŸ—οΈ How It Was Built
179
 
180
- This dataset was produced by the **ThirdEye Labs data pipeline** β€” an end-to-end ML annotation system built for scale:
181
 
182
- 1. **Ingest** β€” raw MP4s from CP Plus dashcams uploaded to S3
183
  2. **Keyframe extraction** β€” 1 frame/second via FFmpeg
184
- 3. **GPS parsing** β€” matched from companion `.srt` files
185
- 4. **Object detection** β€” custom YOLO model fine-tuned on Indian road objects
186
- 5. **Semantic segmentation** β€” SegFormer for drivable area and scene parsing
187
  6. **Multi-object tracking** β€” ByteTrack across frames
188
- 7. **Scene classification** β€” weather, lighting, scene type per clip
189
-
190
- > Want to run your own data through this pipeline? [Contact us β†’](https://thirdeyelabs.ai/contact)
191
-
192
- ---
193
-
194
- ## πŸ“ˆ Benchmark Results
195
-
196
- Models fine-tuned on this dataset show significant improvements on Indian road scenarios. See our full benchmark on [thirdeyelabs.ai](https://thirdeyelabs.ai).
197
-
198
- ---
199
-
200
- ## πŸ”— Links
201
-
202
- | | |
203
- |---|---|
204
- | 🌐 **Website** | [thirdeyelabs.ai](https://thirdeyelabs.ai) |
205
- | 🎬 **Live Demo** | [thirdeyelabs.ai/demo](https://thirdeyelabs.ai/demo) |
206
- | πŸ“§ **Contact** | [thirdeyelabs.ai/contact](https://thirdeyelabs.ai/contact) |
207
 
208
  ---
209
 
210
  ## πŸ“œ License
211
 
212
- This dataset is released under the [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/) license.
213
 
214
- You are free to use, share, and adapt this data for any purpose β€” including commercial use β€” with attribution to **ThirdEye Labs (thirdeyelabs.ai)**.
215
 
216
  ---
217
 
@@ -229,10 +190,12 @@ You are free to use, share, and adapt this data for any purpose β€” including co
229
 
230
  ---
231
 
232
- <div align="center">
233
- <a href="https://thirdeyelabs.ai">
234
- <img src="https://thirdeyelabs.ai/og-image.png" alt="ThirdEye Labs" width="600"/>
235
- </a>
236
-
237
- *Built with ❀️ in India*
238
- </div>
 
 
 
3
  task_categories:
4
  - object-detection
5
  - image-segmentation
 
 
6
  task_ids:
7
  - vehicle-detection
 
 
8
  tags:
9
  - autonomous-driving
10
  - indian-roads
 
12
  - bdd100k
13
  - computer-vision
14
  - detection
 
 
 
15
  pretty_name: Indian Road Driving Dataset
16
  size_categories:
17
  - 100K<n<1M
 
19
 
20
  # πŸš— Indian Road Driving Dataset
21
 
22
+ The **Indian Road Driving Dataset** is the largest open dataset of annotated Indian road footage, created by ThirdEye Labs. It addresses the critical gap in autonomous driving datasets for Indian road conditions.
 
 
 
 
 
 
 
 
 
 
23
 
24
  ---
25
 
26
  ## 🌍 Why Indian Roads?
27
 
28
+ Indian roads present unique challenges absent from existing datasets (BDD100K, nuScenes, Waymo):
29
+ - Dense mixed traffic with unpredictable behavior
30
+ - Auto-rickshaws, cattle, and informal lane usage
31
+ - Extreme lighting conditions
32
+ - **63 million vehicles and 1.4 billion people** β€” yet no large-scale annotated dataset existed
33
 
34
  ---
35
 
36
+ ## πŸ“Š Dataset Statistics
37
 
38
  | Metric | Value |
39
  |--------|-------|
40
+ | **Total clips** | 8,441 |
41
+ | **Annotated frames** | 646,014 |
42
+ | **Object detections** | 6,896,202 |
43
+ | **Segmentation masks** | 1,290,463 |
44
+ | **GPS-tagged frames** | βœ… |
45
+ | **Annotation format** | BDD100K |
46
+ | **Capture device** | CP Plus dashcam |
47
+ | **Location** | Delhi NCR, India |
48
+ | **Conditions** | Day Β· Night Β· Dusk Β· Rain |
49
 
50
  ---
51
 
52
+ ## 🏷️ Detection Classes (12 classes)
53
+
54
+ - **person** β€” Pedestrians
55
+ - **rider** β€” Motorcyclists/cyclists with rider
56
+ - **car** β€” Passenger cars
57
+ - **truck** β€” Trucks and tempos
58
+ - **bus** β€” Buses
59
+ - **motorcycle** β€” Motorcycles (unridden)
60
+ - **bicycle** β€” Bicycles
61
+ - **autorickshaw** β€” Auto-rickshaws (tuk-tuks)
62
+ - **animal** β€” Cattle, dogs, animals on road
63
+ - **vehicle fallback** β€” Unclassified vehicles
64
+ - **traffic light** β€” Traffic signals
65
+ - **traffic sign** β€” Road signs and boards
 
 
 
 
66
 
67
  ---
68
 
69
  ## πŸ“ Dataset Structure
70
 
71
+ Data is stored as **646 WebDataset tar shards** (`data/train-00000-of-00646.tar` … `data/train-00645-of-00646.tar`), each containing ~1,000 frames. Each frame has 3 files inside the shard:
72
+
73
  ```
74
+ {clip_id}_{frame:04d}.jpg # keyframe image
75
+ {clip_id}_{frame:04d}.png # segmentation mask
76
+ {clip_id}_{frame:04d}.json # BDD100K annotations (detections + scene attributes)
77
+ ```
78
+
79
+ Standalone annotation files are also provided for convenient bulk access:
80
+
81
+ ```
82
+ annotations/
83
+ β”œβ”€β”€ detection.json # BDD100K format β€” all 646,014 frames (1.3 GB)
84
+ └── scene_attributes.json # per-clip weather, time of day, scene type
85
+ gps/
86
+ └── gps_tracks.json # GPS coordinates per clip
 
 
87
  ```
88
 
89
  ---
 
96
  from datasets import load_dataset
97
 
98
  ds = load_dataset("thirdeyelabs/indian-road-dataset")
99
+ sample = ds["train"][0]
100
+ # sample keys: jpg, png, json
101
  ```
102
 
103
  ### Load annotations directly
 
108
  with open("annotations/detection.json") as f:
109
  annotations = json.load(f)
110
 
111
+ # BDD100K format β€” each entry:
112
  # { "name": "clip_id/frame", "labels": [{ "category": "car", "box2d": {...} }] }
113
  ```
114
 
 
120
 
121
  ---
122
 
123
+ ## πŸ“ Annotation Format (BDD100K Schema)
 
 
124
 
125
  ```json
126
  {
 
147
 
148
  ## πŸ—ΊοΈ GPS Coverage
149
 
150
+ Every clip includes GPS coordinates, enabling:
151
+ - Geographic filtering by route/area
152
  - Speed and trajectory analysis
153
  - Map-based dataset exploration
154
 
155
  ---
156
 
157
+ ## πŸ—οΈ Production Pipeline
158
 
159
+ ThirdEye Labs end-to-end ML annotation system:
160
 
161
+ 1. **Ingest** β€” raw MP4s from CP Plus dashcams to S3
162
  2. **Keyframe extraction** β€” 1 frame/second via FFmpeg
163
+ 3. **GPS parsing** β€” matched from `.srt` files
164
+ 4. **Object detection** β€” custom YOLO fine-tuned for Indian roads
165
+ 5. **Semantic segmentation** β€” SegFormer for drivable areas
166
  6. **Multi-object tracking** β€” ByteTrack across frames
167
+ 7. **Scene classification** β€” weather, lighting, scene type
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
 
169
  ---
170
 
171
  ## πŸ“œ License
172
 
173
+ **Creative Commons Attribution 4.0 International (CC BY 4.0)**
174
 
175
+ Free to use, share, and adapt for any purpose (including commercial) with attribution to **ThirdEye Labs**.
176
 
177
  ---
178
 
 
190
 
191
  ---
192
 
193
+ ## πŸ”— Links
194
+
195
+ - 🌐 **Website**: [thirdeyelabs.ai](https://thirdeyelabs.ai)
196
+ - 🎬 **Demo**: [thirdeyelabs.ai/demo](https://thirdeyelabs.ai/demo)
197
+ - πŸ“§ **Contact**: [thirdeyelabs.ai/contact](https://thirdeyelabs.ai/contact)
198
+
199
+ ---
200
+
201
+ *Built with ❀️ in India*