Skip to main content

TorchDriveEnv is a lightweight 2D driving reinforcement learning environment, supported by a solid simulator and smart non-playable characters

Project description

Installation

The basic installation of torchdriveenv uses an OpenCV renderer, which is slower but easy to install. PyTorch3D renderer can be faster, but it requires specific versions of CUDA and PyTorch, so it is best installed in Docker.

Opencv rendering

To install the “torchdriveenv” with opencv rendering:

pip install torchdriveenv

To run examples: Set the $IAI_API_KEY and $WANDB_API_KEY

pip install torchdriveenv[baselines]
cd examples
python rl_training.py

Pytorch3d rendering

To install the “torchdriveenv” with Pytorch3d rendering:

docker build --target torchdriveenv-first-release -t torchdriveenv-first-release:latest .

To run examples: Set the $IAI_API_KEY and $WANDB_API_KEY

cd examples
docker compose up rl-training

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torchdriveenv-0.1.1.tar.gz (5.7 MB view hashes)

Uploaded Source

Built Distribution

torchdriveenv-0.1.1-py3-none-any.whl (5.8 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page