more fixes in deep_mimic env
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -11,7 +11,7 @@ print("parentdir=",parentdir)
|
|||||||
from pybullet_envs.deep_mimic.env.pybullet_deep_mimic_env import PyBulletDeepMimicEnv
|
from pybullet_envs.deep_mimic.env.pybullet_deep_mimic_env import PyBulletDeepMimicEnv
|
||||||
from pybullet_envs.deep_mimic.learning.rl_world import RLWorld
|
from pybullet_envs.deep_mimic.learning.rl_world import RLWorld
|
||||||
from pybullet_utils.logger import Logger
|
from pybullet_utils.logger import Logger
|
||||||
from testrl import update_world, update_timestep, build_world
|
from pybullet_envs.deep_mimic.testrl import update_world, update_timestep, build_world
|
||||||
import pybullet_utils.mpi_util as MPIUtil
|
import pybullet_utils.mpi_util as MPIUtil
|
||||||
|
|
||||||
args = []
|
args = []
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ class RLAgent(ABC):
|
|||||||
return self._enable_training
|
return self._enable_training
|
||||||
|
|
||||||
def set_enable_training(self, enable):
|
def set_enable_training(self, enable):
|
||||||
print("set_enable_training!=", enable)
|
print("set_enable_training=", enable)
|
||||||
self._enable_training = enable
|
self._enable_training = enable
|
||||||
if (self._enable_training):
|
if (self._enable_training):
|
||||||
self.reset()
|
self.reset()
|
||||||
@@ -593,4 +593,4 @@ class RLAgent(ABC):
|
|||||||
self.logger.log_tabular("Exp_Rate", self.exp_params_curr.rate)
|
self.logger.log_tabular("Exp_Rate", self.exp_params_curr.rate)
|
||||||
self.logger.log_tabular("Exp_Noise", self.exp_params_curr.noise)
|
self.logger.log_tabular("Exp_Noise", self.exp_params_curr.noise)
|
||||||
self.logger.log_tabular("Exp_Temp", self.exp_params_curr.temp)
|
self.logger.log_tabular("Exp_Temp", self.exp_params_curr.temp)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user