Downloads · 30 days
16
3% of all-time downloads
divyasridoredla/traffic-incident-resilient
traffic-incident-resilient is a reinforcement learning model from divyasridoredla. Use it for the reinforcement learning task on the model card, and read the license before you ship it in a product. It is set up for stable-baselines3. The card lists the license as mit.
Standard RL traffic agents collapse under real-world disruptions. This project builds a custom Gymnasium environment that injects disruptions mid-episode, training a robust PPO agent.
Downloads · 30 days
16
3% of all-time downloads
All-time downloads
571
Public
Repo size
1.2 MB
Likes
0
Public
Click a slice to open those files.
.zip281 KB · 67%
From the Hugging Face model README
Standard RL traffic agents collapse under real-world disruptions. This project builds a custom Gymnasium environment that injects disruptions mid-episode, training a robust PPO agent.
obs[0] += 0.5all obs += 0.3obs[2:] = 0| Agent | Normal | Under Disruption |
|---|---|---|
| Baseline PPO | -17.85 | -73.22 |
| Robust PPO | -22.71 | -60.28 |
17.8% improvement under disruption conditions.

TrafficEnv (no wrapper) as benchmarkIncidentTrafficEnv-v0 via gym.register()TrafficEnv(gymnasium.Env) + DisruptionWrapper(gymnasium.Wrapper)pip install gymnasium stable-baselines3 fastapi uvicorn
python -m uvicorn main:app --port 8000
python inference.py