D4RL icon indicating copy to clipboard operation
D4RL copied to clipboard

[Bug Report] AntMaze envs ignore seed parameters

Open DT6A opened this issue 1 year ago • 1 comments

Hello! Seems like there are some problems with AntMaze tasks in terms of setting seeds. The following code:

import numpy as np
import random
import gym
import d4rl

np.random.seed(0); random.seed(0)
env = gym.make("antmaze-umaze-v1", seed=0)
env.seed(0); env.action_space.seed(0); env.observation_space.seed(0)
env.reset()

np.random.seed(0); random.seed(0)
env = gym.make("antmaze-umaze-v1", seed=0)
env.seed(0); env.action_space.seed(0); env.observation_space.seed(0)
env.reset()

outputs different initial states which is not good.

There was an issue https://github.com/Farama-Foundation/D4RL/issues/23 about the same problem for HalfCheetah tasks. Did the fix influenced AntMaze?

DT6A avatar Feb 28 '23 11:02 DT6A

Same here.

Penguin0007 avatar Sep 06 '24 15:09 Penguin0007