Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
fcfc899d
Commit
fcfc899d
authored
Jan 17, 2021
by
Shashank Suhas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Base commit
parent
cabf6af1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
examples/A3C-Gym/train-atari.py
examples/A3C-Gym/train-atari.py
+6
-1
No files found.
examples/A3C-Gym/train-atari.py
View file @
fcfc899d
...
...
@@ -281,7 +281,12 @@ if __name__ == '__main__':
choices
=
[
'play'
,
'eval'
,
'train'
,
'dump_video'
],
default
=
'train'
)
parser
.
add_argument
(
'--output'
,
help
=
'output directory for logs and videos'
)
parser
.
add_argument
(
'--episode'
,
help
=
'number of episode to eval'
,
default
=
100
,
type
=
int
)
parser
.
add_argument
(
'--render'
,
help
=
'Display real-time video of game-playing'
,
action
=
'store_true'
)
args
=
parser
.
parse_args
()
print
(
args
.
render
)
if
args
.
output
is
None
:
args
.
output
=
os
.
path
.
join
(
'train_log'
,
'train-atari-{}'
.
format
(
args
.
env
))
...
...
@@ -301,7 +306,7 @@ if __name__ == '__main__':
output_names
=
[
'policy'
]))
if
args
.
task
==
'play'
:
play_n_episodes
(
get_player
(
train
=
False
),
pred
,
args
.
episode
,
render
=
True
)
args
.
episode
,
render
=
args
.
render
)
elif
args
.
task
==
'eval'
:
eval_model_multithread
(
pred
,
args
.
episode
,
get_player
)
elif
args
.
task
==
'dump_video'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment