Farama-Foundation / Minigrid

Simple and easily configurable grid world environments for reinforcement learning
https://minigrid.farama.org/
Other
2.09k stars 604 forks source link

[Question] How to create vectorized envs for minigrid #398

Closed kbkartik closed 1 year ago

kbkartik commented 1 year ago

I would like to use vectorized envs to train SAC-Discrete. Is there an efficient way of implementing vectorized envs in minigrid?

pseudo-rnd-thoughts commented 1 year ago

Do you mean using the gymnasium Vector environments, SyncVectorEnv or AsyncVectorEnv?

kbkartik commented 1 year ago

Yes, do we use those wrappers for minigrid as well? I didn't find any resource pointing to vec envs in the minigrid documentation.

pseudo-rnd-thoughts commented 1 year ago

Yes, these should work for all environments in theory. Let us know if there is an issue