first updats to reacher and env creation

This commit is contained in:
Fabian
2022-10-20 10:10:44 +02:00
parent 14ac5f81c7
commit 0c7ac838bf
4 changed files with 34 additions and 8 deletions
+4 -1
View File
@@ -9,6 +9,7 @@ from typing import Iterable, Type, Union
import gym
import numpy as np
from gym.envs.registration import register, registry
from gym.utils import seeding
try:
from dm_control import suite, manipulation
@@ -88,7 +89,9 @@ def make(env_id: str, seed: int, **kwargs):
else:
env = make_gym(env_id, seed, **kwargs)
env.seed(seed)
np_random, _ = seeding.np_random(seed)
env.np_random = np_random
# env.seed(seed)
env.action_space.seed(seed)
env.observation_space.seed(seed)