Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AdvRL19
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flgw
AdvRL19
Commits
bbfefa09
Commit
bbfefa09
authored
Mar 27, 2019
by
Florian Gawrilowicz
Browse files
Options
Downloads
Patches
Plain Diff
pepify
parent
6622ef18
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
hw1/roboschool_agents.py
+6
-3
6 additions, 3 deletions
hw1/roboschool_agents.py
with
6 additions
and
3 deletions
hw1/roboschool_agents.py
+
6
−
3
View file @
bbfefa09
...
...
@@ -7,10 +7,13 @@ def load_policy(env_name, env):
pi
=
None
if
'
Ant
'
in
env_name
:
pi
=
RoboschoolAnt_v1_2017jul
.
ZooPolicyTensorflow
(
"
mymodel1
"
,
env
.
observation_space
,
env
.
action_space
)
pi
=
RoboschoolAnt_v1_2017jul
.
ZooPolicyTensorflow
(
"
mymodel1
"
,
env
.
observation_space
,
env
.
action_space
)
if
'
Atlas
'
in
env_name
:
pi
=
RoboschoolAtlasForwardWalk_v1_2017jul
.
ZooPolicyTensorflow
(
"
mymodel1
"
,
env
.
observation_space
,
env
.
action_space
)
pi
=
RoboschoolAtlasForwardWalk_v1_2017jul
.
ZooPolicyTensorflow
(
"
mymodel1
"
,
env
.
observation_space
,
env
.
action_space
)
if
'
Human
'
in
env_name
:
pi
=
RoboschoolHumanoid_v1_2017jul
.
ZooPolicyTensorflow
(
"
mymodel1
"
,
env
.
observation_space
,
env
.
action_space
)
pi
=
RoboschoolHumanoid_v1_2017jul
.
ZooPolicyTensorflow
(
"
mymodel1
"
,
env
.
observation_space
,
env
.
action_space
)
return
pi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment