Farama-Foundation / HighwayEnv

A minimalist environment for decision-making in autonomous driving
https://highway-env.farama.org/
MIT License
2.65k stars 758 forks source link

Use other DRL libraries #302

Closed zhumingpassional closed 1 year ago

zhumingpassional commented 2 years ago

How to use other DRL libraries (e.g., elegantRL, tianshou) with highway-env as env?

eleurent commented 2 years ago

I have only tried to use openai/baselines, DLR-RM/stable-baselines3, and eleurent/rl-agent libraries. But highway-env follows the common openai/gym interface, so if these DRL libraries support it then it should work fine. I encourage you to look at the documentation of these libraries to find out how to run them on a custom openai/gym environment.

lostboy233333 commented 1 year ago

Have you tried to combine tianshou with highway environment? Did it work?

eleurent commented 1 year ago

Hi, no I have not. If you try, let me know how it goes :)