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
importrandomfromPILimportImageimportnumpyasnpimporttorchfrommujoco_robot_environments.tasks.rearrangementimportRearrangementEnv# setting random seedsrandom.seed(0)
env=RearrangementEnv(viewer=True)
env.reset()
obs=env._compute_observation()['overhead_camera/rgb']
obs_img=Image.fromarray(obs)
obs_img.save('obs.png')
env.close()
you get two different results
After inspection, this is because np.random.seed is not set explicitly. I can now replicate environments with the same seed.
Generally, for the API functionality, is something like this possible?
frommujoco_robot_environments.tasks.rearrangementimportRearrangementEnvenv=RearrangementEnv(viewer=True)
env.reset()
# saving the environmentenv.save("save_file_name")
# loading the environmentenv=RearrangementEnv.load("save_file_name")
Currently, its not straightforward how the save and load functionality works for the environment. This functionality is valuable for:
random.seed(###)
) is not sufficient to fix randomness in the systemThe text was updated successfully, but these errors were encountered: