Skip to main content

Dream

A driving simulator of Gurgaon's real roads, in traffic that behaves like India's. Two-wheelers squeeze past, autos cut in, people cross anywhere and cows stand in the lane. How often each of these happens comes from dashcam footage of Delhi NCR that the Third Eye Labs team labelled by hand. The name comes from the world-models idea: driving software can learn inside a dream of the world before it meets the real one.

  • Play it in your browser: https://dream.thirdeyelabs.ai (nothing to install)
  • Use it in Python: a Gymnasium environment for training and testing driving software, with planner scores in the style of nuPlan and CARLA.

Install

pip install "thirdeyelabs[sim]"          # the environment (installs thirdeye-sim)
pip install "thirdeye-sim[render]"       # plus the 3D view and the desktop game

Python 3.10 or later. thirdeyelabs is our dataset package; its sim extra installs this simulator, which is also on PyPI on its own as thirdeye-sim.

Quick start

import gymnasium as gym
import thirdeye_sim.env                  # registers ThirdEye/Gurgaon-v0

env = gym.make("ThirdEye/Gurgaon-v0")
obs, info = env.reset(seed=0)
while True:
    obs, reward, terminated, truncated, info = env.step(env.action_space.sample())
    if terminated or truncated:
        break

The observation, actions, reward and options are in docs/environment.md.

Score a planner

python -m thirdeye_sim.evaluate --episodes 20

Drives each planner in thirdeye_sim/planners.py over the same seeded routes in Gurgaon traffic and in orderly traffic, and reports nuPlan-style and CARLA-style scores beside the raw counts. Add your own planner to PLANNERS to score it.

Check the traffic against real roads

python -m thirdeye_sim.realism

Compares how often each kind of event happens in the simulator with how often it happens in our footage, and how fast traffic moves. The results and what they do not cover yet are at https://dream.thirdeyelabs.ai/realism.

What is measured and what is assumed

Event rates come from labelled footage, with their uncertainty. Some things are assumed until we can measure them, and the code marks them as assumed: lane counts on roads OpenStreetMap leaves untagged, most speed breakers, potholes, and the rates of the cow, dog and U-turn events. STANDARDS.md lists every standard we follow and every addition we make.

Licences

  • Code: Apache-2.0 (LICENSE)
  • Map data: © OpenStreetMap contributors, under the ODbL (NOTICE)
  • Event rates and measurements: CC BY 4.0

Citation

See CITATION.cff. Built by Third Eye Labs.

Metadata

Release files for thirdeye-sim 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thirdeye-sim 0.1.0
File Size Uploaded Provenance Actions
thirdeye_sim-0.1.0.tar.gz 8.9 MB Without provenance Details for thirdeye_sim-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for thirdeye-sim 0.1.0
File Interpreter ABI Platform Actions
thirdeye_sim-0.1.0-py3-none-any.whl Python 3 none any Details for thirdeye_sim-0.1.0-py3-none-any.whl

Total release size: 17.8 MB

Release files / thirdeye_sim-0.1.0.tar.gz

Download URL thirdeye_sim-0.1.0.tar.gz
Size 8.9 MB
Tags Source
SHA-256 checksum
How to use checksums
c3eec6890cc629fca61b4b6be9f525dc3228ce5173bc45b11cb3076747e10419
BLAKE2b-256 checksum
How to use checksums
deb03d5c9566d1379788c28528c91c1b017df3089eb1788519aba53ac2ad3a93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / thirdeye_sim-0.1.0-py3-none-any.whl

Download URL thirdeye_sim-0.1.0-py3-none-any.whl
Size 8.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1568c1fdf36fc2abfb9e8a4ec0493274caf5e4774b28d38b61e7ca4312a2804c
BLAKE2b-256 checksum
How to use checksums
0c080c56c90450bb7aa6b5fc19d280a2c713eee3e73a35ac61c2ee170a231e0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for thirdeye-sim 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page