# Based on Custom RL Example using Stable Baselines , multiple envs wrong!

**URL:** <https://forums.developer.nvidia.com/t/based-on-custom-rl-example-using-stable-baselines-multiple-envs-wrong/242609>\
**Category:** Isaac Gym\
**Created:** [February 13, 2023, 7:38am UTC](https://forums.developer.nvidia.com/t/based-on-custom-rl-example-using-stable-baselines-multiple-envs-wrong/242609 "2023-02-13T07:38:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![toni.sm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/toni.sm/32/27559_2.png) [@toni.sm](https://forums.developer.nvidia.com/u/toni.sm)\
**Post date:** [February 13, 2023, 12:24pm UTC](https://forums.developer.nvidia.com/t/based-on-custom-rl-example-using-stable-baselines-multiple-envs-wrong/242609/2 "2023-02-13T12:24:24Z")

</div>

Hi @2456496590

For the Custom RL example applied to multiple environments, this post may help:

> [@Unable to train multi environment robot](https://forums.developer.nvidia.com/t/unable-to-train-multi-environment-robot/236048/9):
>
> Hi @LYS_00 After looking at the code, I have the following comments: The VecEnvBase instance (from the omni.isaac.gym extension) used to create the task inherits from gym.Env class. The OpenAI Gym gym.Env class can only define 1 environment. It is possible to define multi-environments in Gym via the [gym.vector.make](https://www.gymlibrary.dev/api/vector/) API. This API will instantiate the classes gym.vector.SyncVectorEnv or gym.vector.AsyncVectorEnv according to the asynchronous parameter. However, it is not recommended to …

---

_[View the full topic](https://forums.developer.nvidia.com/t/based-on-custom-rl-example-using-stable-baselines-multiple-envs-wrong/242609)._
