mirror of
https://github.com/wassname/kair_algorithms_draft.git
synced 2026-09-10 12:14:41 +08:00
Modify docker related commands (#54)
* Add new ros package installation(orocos, hrl-kdl) * Add source bashrc * update train script * Add custom package ros * Change delegating env_name logic * Add reacher env when training selection * Change clone branch to master
This commit is contained in:
committed by
Seungjae Ryan Lee
parent
5ff59a280e
commit
4b56ae781b
@@ -44,7 +44,10 @@ class AbstractAgent(object):
|
||||
self.args.max_episode_steps = env._max_episode_steps
|
||||
|
||||
# for logging
|
||||
self.env_name = str(self.env.env).split("<")[1].replace(">>", "")
|
||||
if hasattr(env, "env_name"):
|
||||
self.env_name = env.env_name
|
||||
else:
|
||||
self.env_name = self.env.unwrapped.spec.id
|
||||
self.sha = (
|
||||
subprocess.check_output(["git", "rev-parse", "--short", "HEAD"])[:-1]
|
||||
.decode("ascii")
|
||||
|
||||
Reference in New Issue
Block a user