All updates

We built Dream, a simulator of Gurgaon from our dashcam footage

Dream, our simulator of Gurgaon. A two-wheeler is about to squeeze past our red car.

Drive through Gurgaon in the evening. A two-wheeler slips between you and the bus beside you. An auto noses in from the left. Someone steps off the median without looking. None of it is rare. So before we tell you what we built, a question.

Your guess

How many times an hour does a two-wheeler squeeze past a car on Gurgaon roads?

30 an hour

That is our whole bet. What makes Indian roads hard for driving software is not one strange event. It is how often ordinary ones happen. Rates can be counted, and counting what happens on Indian roads is close to what we already do every day with our dashcam footage. So we started counting.

We drew 100 random clips from two of our drives through Gurgaon, one by day and one at night, and labelled the main event in each by hand. Try three of them.

Spot the event

What is the main event in each clip?

Each clip is 6 seconds; what starts in the middle 4 counts. Faces, plates and painted numbers are blurred.

Clip 1 · day

Clip 2 · day

Clip 3 · day

That AI model is the best of five we tested on all 100 clips. It agreed with our labeller on 50 of them. Answering “nothing” to every clip would have scored 44, because 44 of the clips have no event. The models mostly miss the everyday things, overtakes and two-wheelers squeezing past. So for now, people do this labelling, and every rate comes with a range because 100 clips is a small sample.

Then we built Dream. It runs on the real road map of a stretch of Gurgaon about 5 km by 2 km. Its traffic filters through gaps and cuts in, its roads have speed breakers, potholes and bus stops, and an event generator keeps each kind of event at its measured rate. Here is the same kind of moment on the road and in Dream.

A pedestrian crossing

On the road, from our dashcam

In Dream, from above

We count Dream exactly the way our labeller counted the clips: one main event per 4-second window, by the same priority list. Here are two minutes of one drive.

Two minutes in Dream, four times faster

0:00 · 0 counted

  • Press play. Filled dots come from the traffic, hollow ones from the event generator.

Then the test. Over 48 simulated drives, all 12 kinds of event we have measured land inside the range our footage gives. 6 of them get there from the traffic model alone, without any help from the generator.

Did it match?

12 of 12

  • Two-wheeler squeezing past
  • Overtaken on the right
  • Overtaken on the left
  • Pedestrian crossing in front
  • Vehicle coming the wrong way
  • Cut-in from the left
  • Car ahead braking hard
  • Slow vehicle ahead
  • Vehicle pulling out
  • Pedestrian walking in the road
  • Cut-in from the right
  • Red light jumped

Bands: how often each event happens in our footage, per hour of driving, with the range our sample allows. Dots: Dream. See the full check.

Then the question that matters to anyone building driving software. We drove a standard textbook planner over the same 100 routes twice, once in orderly lane-keeping traffic and once in Gurgaon traffic.

The same planner, the same 100 routes

14

crashes in orderly traffic

27

crashes in Gurgaon traffic

Each square is a route. Red ended in a crash, bronze ran out of time. Hover or tap one.

Dream has limits, and we would rather say them up front. The driving software in it sees an exact list of the road users around it, not camera images. One person labelled 100 clips, which is a small sample. It covers one part of one city. And its simulated cars stand still more often than real ones do.

Next we close the biggest gap: software that sees what a car sees. First it will watch real frames from our four-camera rig and plan the next few seconds, and we will score each plan against what actually happened. Then a world model will paint the camera view of Dream's scenes, so the software can drive in closed loop while the traffic reacts. Dream is where that work will live.

All of it is open. Drive it in your browser, install it with pip install "thirdeyelabs[sim]", or read exactly how we built it. If you build driving software for Indian roads, we would be glad to run your planner through Dream, or to collect and label footage from the roads you ship into.