Closed raymondchua closed 2 years ago
Yes, you would need to supply a different seed to each environment.
You could call env.seed()
in your lambda with a different seed for each environment after creating it.
There's also a seed
method for AsyncVectorEnv that takes. a list of seeds: https://tristandeleu.github.io/gym/vector/api_reference.html#gym.vector.AsyncVectorEnv.seed
Thanks! That works!
Hi, I would like to vectorise the mini grid environment if possible. Currently, I am doing
But when I view the images of the environment, it seems that for all the environments, the agents have the same starting location. I am hoping that the agents are starting at different random positions. When initialising the environment, I set agent_start_pos = None but I suspect it needs something else to fix this issue. Is there a way to set use the random seed to generate different random seeds for the environments?