Skip to content

Instantly share code, notes, and snippets.

View daphne-cornelisse's full-sized avatar

Daphne Cornelisse daphne-cornelisse

View GitHub Profile
@daphne-cornelisse
daphne-cornelisse / run_episode.py
Last active August 6, 2024 23:49
GPUDrive run an episode
import numpy as np
import torch
from pygpudrive.env.config import EnvConfig, RenderConfig, SceneConfig
from pygpudrive.env.env_torch import GPUDriveTorchEnv
# CONFIGURE
TOTAL_STEPS = 90
MAX_NUM_OBJECTS = 128
NUM_WORLDS = 50