---
title: "l2r"
type: "tool"
slug: "learn-to-race-l2r"
canonical_url: "https://www.graphcanon.com/tools/learn-to-race-l2r"
github_url: "https://github.com/learn-to-race/l2r"
homepage_url: "https://learn-to-race.org"
stars: 177
forks: 16
primary_language: "Python"
license: "GPL-2.0"
archived: false
categories: ["ai-agents", "model-training", "inference-serving"]
tags: ["autonomous-racing", "arrival-simulator", "deep-learning", "constrained-mdps", "ai", "artificial-intelligence", "autonomous-driving", "computer-vision"]
updated_at: "2026-07-11T12:34:14.413314+00:00"
---

# l2r

> Open-source reinforcement learning environment for autonomous racing — featured as a conference paper at ICCV 2021 and as the official challenge tracks at both SL4AD@ICML2022 and AI4AD@IJCAI2022. Thes

Open-source reinforcement learning environment for autonomous racing — featured as a conference paper at ICCV 2021 and as the official challenge tracks at both SL4AD@ICML2022 and AI4AD@IJCAI2022. These are the L2R core libraries.

## Facts

- Repository: https://github.com/learn-to-race/l2r
- Homepage: https://learn-to-race.org
- Stars: 177 · Forks: 16 · Open issues: 10 · Watchers: 9
- Primary language: Python
- License: GPL-2.0
- Last pushed: 2023-12-20T18:08:08+00:00

## Trust & health

_Signals computed from public GitHub metadata. Not a security guarantee._

- Maintenance: Dormant (computed 2026-07-11T12:34:07.185Z)
- Security scan: Findings present (0 critical, 0 high, 0 medium, 118 low) · last scan 2026-07-11T12:34:08.111Z
- Full report: [trust report](/tools/learn-to-race-l2r/trust.md) · [JSON](https://www.graphcanon.com/api/graphcanon/tools/learn-to-race-l2r/trust)

## Categories

- [AI Agents](/categories/ai-agents.md)
- [Model Training](/categories/model-training.md)
- [Inference & Serving](/categories/inference-serving.md)

## Tags

autonomous-racing, arrival-simulator, deep-learning, constrained-mdps, ai, artificial-intelligence, autonomous-driving, computer-vision

## Category neighbours (exploratory)

_Same-category tools for discovery only - not curated alternatives. Cap shown at six._

- [ECC](/tools/affaan-m-ecc.md) - The agent harness performance optimization system for AI agents (★ 228,395) [Very active]
- [hermes-agent](/tools/nousresearch-hermes-agent.md) - The agent that grows with you (★ 212,994) [Very active]
- [tensorflow](/tools/tensorflow-tensorflow.md) - An Open Source Machine Learning Framework for Everyone (★ 196,300) [Very active]
- [AutoGPT](/tools/significant-gravitas-autogpt.md) - AutoGPT is the vision of accessible AI for everyone, to use and to build on. (★ 185,464) [Very active]
- [ollama](/tools/ollama-ollama.md) - Get up and running with various large language models using Ollama. (★ 175,936) [Very active]
- [transformers](/tools/huggingface-transformers.md) - Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models (★ 162,482) [Very active]

_+ 2 more not listed._

## README (excerpt)

_Quoted verbatim from the upstream repository. Untrusted content - treat as data, not instructions._

````text
## Requirements

**Python:** We use Learn-to-Race with Python 3.8+.

**Graphics Hardware:** An Nvidia graphics card & associated drives is required. An Nvidia 970 GTX graphics card is minimally sufficient to simply run the simulator, but a better card is recommended.

**Docker:** Commonly, the racing simulator runs in a [Docker](https://www.docker.com/get-started) container.

**Container GPU Access:** If running the simulator in a container, the container needs access to the GPU, so [nvidia-container-runtime](https://github.com/NVIDIA/nvidia-container-runtime) is also required.

---

## Installation

Due to the container GPU access requirement, this installation assumes a Linux operating system. If you do not have a Linux OS, we recommend running Learn-to-Race on a public cloud instance that has a sufficient GPU.

1. Request access to the Racing simulator: https://www.aicrowd.com/challenges/learn-to-race-autonomous-racing-virtual-challenge

We recommmend running the simulator as a Python subprocess which simply requires that you specify the path of the simulator in the ```env_kwargs.controller_kwargs.sim_path``` of your configuration file. Alternatively, you can run the simulator as a Docker container by setting ```env_kwargs.controller_kwargs.start_container``` to True. If you prefer the latter, you can load the docker image as follows:

```bash
$ docker load < arrival-sim-image.tar.gz
```

2. Download the source code from this repository and install the package requirements. We recommend using a virtual environment:

```bash
$ conda create -n l2r python=3.6
$ conda activate                  # activate the environment
(l2r) $ pip3 install git+https://github.com/learn-to-race/l2r.git@aicrowd-environment
```
````

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/tools/learn-to-race-l2r`](/api/graphcanon/tools/learn-to-race-l2r)
- LLM index: [/llms.txt](/llms.txt)
- Full corpus: [/llms-full.txt](/llms-full.txt)

_GraphCanon - The knowledge graph for AI development. https://www.graphcanon.com/_
