Downloads · 30 days
0
kengboon/rsac-RoadEnv
rsac-RoadEnv is a reinforcement learning model from kengboon. Use it for the reinforcement learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-4.0.
This repository contains model weights for the agents performing in RoadEnv.
Downloads · 30 days
0
Access
Public
Updated Dec 12, 2025
Repo size
388 MB
Likes
0
Public
Click a slice to open those files.
Other164 MB · 82%
From the Hugging Face model README
This repository contains model weights for the agents performing in RoadEnv.
See the getting started section of RoadEnv.
# Register environment
from road_env import register_road_envs
register_road_envs()
# Make environment
import gymnasium as gym
env = gym.make('urban-road-v0', render_mode='rgb_array')
# Configure parameters (example)
env.configure({
"random_seed": None,
"duration": 60,
})
obs, info = env.reset()
# Graphic display
import matplotlib.pyplot as plt
plt.imshow(env.render())
# Execution
done = truncated = False
while not (done or truncated):
action = ... # Your agent code here
obs, reward, done, truncated, info = env.step(action)
env.render() # Update graphic