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
e3e21c61
Commit
e3e21c61
authored
Dec 04, 2016
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A3C notes about cpu
parent
6af22cdd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
examples/OpenAIGym/README.md
examples/OpenAIGym/README.md
+4
-1
examples/OpenAIGym/train-atari.py
examples/OpenAIGym/train-atari.py
+1
-0
examples/README.md
examples/README.md
+1
-2
tensorpack/models/pool.py
tensorpack/models/pool.py
+2
-2
No files found.
examples/OpenAIGym/README.md
View file @
e3e21c61
...
@@ -6,7 +6,10 @@ Implemented A3C in [Asynchronous Methods for Deep Reinforcement Learning](http:/
...
@@ -6,7 +6,10 @@ Implemented A3C in [Asynchronous Methods for Deep Reinforcement Learning](http:/
`./train-atari.py --env Breakout-v0 --gpu 0`
`./train-atari.py --env Breakout-v0 --gpu 0`
The pre-trained models are all trained with 4 GPUs.
It should run at a speed of 6~10 iteration/s on 1 GPU.
Training with a significant slower speed (e.g. on CPU) will give bad performance,
probably because of async issues.
The pre-trained models are all trained with 4 GPUs for about 2 days.
### To run a pretrained Atari model for 100 episodes:
### To run a pretrained Atari model for 100 episodes:
...
...
examples/OpenAIGym/train-atari.py
View file @
e3e21c61
...
@@ -247,6 +247,7 @@ if __name__ == '__main__':
...
@@ -247,6 +247,7 @@ if __name__ == '__main__':
logger
.
info
(
"[BA3C] Train on gpu {} and infer on gpu {}"
.
format
(
logger
.
info
(
"[BA3C] Train on gpu {} and infer on gpu {}"
.
format
(
','
.
join
(
map
(
str
,
train_tower
)),
','
.
join
(
map
(
str
,
predict_tower
))))
','
.
join
(
map
(
str
,
train_tower
)),
','
.
join
(
map
(
str
,
predict_tower
))))
else
:
else
:
logger
.
warn
(
"Without GPU this model will never learn! CPU is only useful for debug."
)
nr_gpu
=
0
nr_gpu
=
0
PREDICTOR_THREAD
=
1
PREDICTOR_THREAD
=
1
predict_tower
=
[
0
]
predict_tower
=
[
0
]
...
...
examples/README.md
View file @
e3e21c61
...
@@ -11,7 +11,6 @@ Training examples with __reproducible__ and meaningful performance.
...
@@ -11,7 +11,6 @@ Training examples with __reproducible__ and meaningful performance.
+
[
ResNet for ImageNet/Cifar10/SVHN
](
ResNet
)
+
[
ResNet for ImageNet/Cifar10/SVHN
](
ResNet
)
+
[
Holistically-Nested Edge Detection
](
HED
)
+
[
Holistically-Nested Edge Detection
](
HED
)
+
[
Spatial Transformer Networks on MNIST addition
](
SpatialTransformer
)
+
[
Spatial Transformer Networks on MNIST addition
](
SpatialTransformer
)
+
[
Generative Adversarial Networks
](
GAN
)
+
[
Generative Adversarial Networks variants
](
GAN
)
+
[
DisturbLabel -- I don't believe the paper
](
DisturbLabel
)
+
Reinforcement learning (DQN, A3C) on
[
Atari games
](
Atari2600
)
and
[
demos on OpenAI Gym
](
OpenAIGym
)
.
+
Reinforcement learning (DQN, A3C) on
[
Atari games
](
Atari2600
)
and
[
demos on OpenAI Gym
](
OpenAIGym
)
.
+
[
char-rnn for fun
](
char-rnn
)
+
[
char-rnn for fun
](
char-rnn
)
tensorpack/models/pool.py
View file @
e3e21c61
...
@@ -120,9 +120,9 @@ def FixedUnPooling(x, shape, unpool_mat=None):
...
@@ -120,9 +120,9 @@ def FixedUnPooling(x, shape, unpool_mat=None):
@
layer_register
()
@
layer_register
()
def
BilinearUpSample
(
x
,
shape
):
def
BilinearUpSample
(
x
,
shape
):
"""
"""
Non-parametr
ic bilinear upsample the input images.
Determinist
ic bilinear upsample the input images.
:param x: input NHWC tensor
:param x: input NHWC tensor
:param shape: an integer
:param shape: an integer
, the upsample factor
"""
"""
def
bilinear_conv_filler
(
s
):
def
bilinear_conv_filler
(
s
):
"""
"""
...
...
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