You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my case, I need to replicate the MuJoCo environment (for imitation learning). But, I find that the unpickled environment is not the same as the original environment. First, I pickled the environment which is used for expert's demonstration. Then I unpickled the environment for the learner and find that the initial observation of them are not the same.
I use the code below for testing.
env = gym.make('Reacher-v2')
with open('env.pkl', 'wb') as f:
env = pickle.dump(env, f)
with open('env.pkl', 'rb') as f:
load_env = pickle.load(f)
a = env.unwrapped._get_obs()
b = load_env.unwrapped._get_obs()
print(a-b)
In my case, I need to replicate the MuJoCo environment (for imitation learning). But, I find that the unpickled environment is not the same as the original environment. First, I pickled the environment which is used for expert's demonstration. Then I unpickled the environment for the learner and find that the initial observation of them are not the same.
I use the code below for testing.
Result:
The text was updated successfully, but these errors were encountered: