11GPUDrive
22========
33
4- ![ Python version] ( https://img.shields.io/badge/Python-3.11-blue ) [ ![ Paper] ( https://img.shields.io/badge/arXiv-2408.01584-b31b1b.svg )] ( https://arxiv.org/abs/2408.01584 )
4+ [ ![ Paper] ( https://img.shields.io/badge/arXiv-2408.01584-b31b1b.svg )] ( https://arxiv.org/abs/2408.01584 )
5+ [ ![ GitHub CI] ( https://github.com/Emerge-Lab/gpudrive/actions/workflows/ci.yml/badge.svg )] ( https://github.com/Emerge-Lab/gpudrive/actions/workflows/ci.yml )
6+ [ ![ License] ( https://img.shields.io/github/license/Emerge-Lab/gpudrive )] ( LICENSE )
7+ ![ Python version] ( https://img.shields.io/badge/Python-3.11-blue )
58
69An extremely fast, data-driven driving simulator written in C++.
710
@@ -66,20 +69,28 @@ For Windows, open the cloned repository in Visual Studio and build the project u
6669
6770Next, set up a Python environment
6871
69- #### With pyenv (Recommended)
72+ #### With uv (Recommended)
7073
71- Create a virtual environment:
74+ Create a virtual environment and install the Python components of the repository :
7275
7376``` bash
74- pyenv virtualenv 3.11 gpudrive
75- pyenv activate gpudrive
77+ uv sync --frozen
7678```
7779
78- Set it for the current project directory (optional):
80+ #### With pyenv
7981
80- ``` bash
81- pyenv local gpudrive
82- ```
82+ Create a virtual environment:
83+
84+ ``` bash
85+ pyenv virtualenv 3.11 gpudrive
86+ pyenv activate gpudrive
87+ ```
88+
89+ Set it for the current project directory (optional):
90+
91+ ``` bash
92+ pyenv local gpudrive
93+ ```
8394
8495#### With conda
8596
@@ -90,18 +101,18 @@ conda activate gpudrive
90101
91102### Install Python package
92103
93- Finally, install the Python components of the repository using pip:
104+ Finally, install the Python components of the repository using pip (this step is not required for the ` uv ` installation) :
94105
95106``` bash
96107# macOS and Linux.
97108pip install -e .
98109```
99110
100- Optional depencies include [ pufferlib] , [ sb3] , [ vbd] , and [ tests] .
111+ Dependency-groups include ` pufferlib ` , ` sb3 ` , ` vbd ` , and ` tests ` .
101112
102113``` bash
103114# On Windows.
104- pip install -e . -Cpackages.madrona_escape_room.ext-out-dir=PATH_TO_YOUR_BUILD_DIR on Windows
115+ pip install -e . -Cpackages.madrona_escape_room.ext-out-dir=< PATH_TO_YOUR_BUILD_DIR on Windows>
105116```
106117
107118</details >
@@ -124,14 +135,14 @@ Ensure you have the following installed:
124135Once installed, you can build the container with:
125136
126137``` bash
127- DOCKER_BUILDKIT=1 docker build --build-arg USE_CUDA=true --tag my_image :latest --progress=plain .
138+ DOCKER_BUILDKIT=1 docker build --build-arg USE_CUDA=true --tag gpudrive :latest --progress=plain .
128139```
129140
130141### Running the Container
131142To run the container with GPU support and shared memory:
132143
133144``` bash
134- docker run --gpus all -it --rm --shm-size=20G -v ${PWD} :/workspace my_image :latest /bin/bash
145+ docker run --gpus all -it --rm --shm-size=20G -v ${PWD} :/workspace gpudrive :latest /bin/bash
135146```
136147
137148</details >
0 commit comments