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
6d2a0aa1
Commit
6d2a0aa1
authored
Jul 28, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better scope in STN
parent
c326e840
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
examples/A3C-Gym/README.md
examples/A3C-Gym/README.md
+1
-1
examples/SpatialTransformer/mnist-addition.py
examples/SpatialTransformer/mnist-addition.py
+10
-9
No files found.
examples/A3C-Gym/README.md
View file @
6d2a0aa1
...
@@ -49,7 +49,7 @@ Models are available for the following atari environments (click to watch videos
...
@@ -49,7 +49,7 @@ Models are available for the following atari environments (click to watch videos
|
[
Frostbite
](
https://gym.openai.com/evaluations/eval_qtC3taKFSgWwkO9q9IM4hA
)
|
[
Gopher
](
https://gym.openai.com/evaluations/eval_KVcpR1YgQkEzrL2VIcAQ
)
|
[
Gravitar
](
https://gym.openai.com/evaluations/eval_QudrLdVmTpK9HF5juaZr0w
)
|
[
IceHockey
](
https://gym.openai.com/evaluations/eval_8oWCTwwGS7OUTTGRwBPQkQ
)
|
|
[
Frostbite
](
https://gym.openai.com/evaluations/eval_qtC3taKFSgWwkO9q9IM4hA
)
|
[
Gopher
](
https://gym.openai.com/evaluations/eval_KVcpR1YgQkEzrL2VIcAQ
)
|
[
Gravitar
](
https://gym.openai.com/evaluations/eval_QudrLdVmTpK9HF5juaZr0w
)
|
[
IceHockey
](
https://gym.openai.com/evaluations/eval_8oWCTwwGS7OUTTGRwBPQkQ
)
|
|
[
Jamesbond
](
https://gym.openai.com/evaluations/eval_mLF7XPi8Tw66pnjP73JsmA
)
|
[
JourneyEscape
](
https://gym.openai.com/evaluations/eval_S9nQuXLRSu7S5x21Ay6AA
)
|
[
Kangaroo
](
https://gym.openai.com/evaluations/eval_TNJiLB8fTqOPfvINnPXoQ
)
|
[
Krull
](
https://gym.openai.com/evaluations/eval_dfOS2WzhTh6sn1FuPS9HA
)
|
|
[
Jamesbond
](
https://gym.openai.com/evaluations/eval_mLF7XPi8Tw66pnjP73JsmA
)
|
[
JourneyEscape
](
https://gym.openai.com/evaluations/eval_S9nQuXLRSu7S5x21Ay6AA
)
|
[
Kangaroo
](
https://gym.openai.com/evaluations/eval_TNJiLB8fTqOPfvINnPXoQ
)
|
[
Krull
](
https://gym.openai.com/evaluations/eval_dfOS2WzhTh6sn1FuPS9HA
)
|
|
[
KungFuMaster
](
https://gym.openai.com/evaluations/eval_vNWDShYTRC0MhfIybeUYg
)
|
[
MsPacman
](
https://gym.openai.com/evaluations/eval_kpL9bSsS4GXsYb9HuEfew
)
|
[
NameThisGame
](
https://gym.openai.com/evaluations/eval_LZqfv706SdOMtR4ZZIwIsg
)
|
[
Phoenix
](
https://gym.openai.com/evaluations/eval_uzUruiB3RRKUMvJIxvEzYA
)
|
|
[
KungFuMaster
](
https://gym.openai.com/evaluations/eval_vNWDShYTRC0MhfIybeUYg
)
|
[
MsPacman
](
https://gym.openai.com/evaluations/eval_kpL9bSsS4GXsYb9HuEfew
)
|
[
NameThisGame
](
https://gym.openai.com/evaluations/eval_LZqfv706SdOMtR4ZZIwIsg
)
|
[
Phoenix
](
https://gym.openai.com/evaluations/eval_uzUruiB3RRKUMvJIxvEzYA
)
|
|
[
Pong
](
https://gym.openai.com/evaluations/eval_8L7SV59nSW6GGbbP3N4G6w
)
|
[
Pooyan
](
https://gym.openai.com/evaluations/eval_UXFVI34MSAuNTtjZcK8N0A
)
|
[
Qbert
](
https://gym.openai.com/evaluations/eval_
wekCJkrWQm9NrOUzltXg
)
|
[
Riverraid
](
https://gym.openai.com/evaluations/eval_OU4x3DkTfm4uaXy6CIaXg
)
|
|
[
Pong
](
https://gym.openai.com/evaluations/eval_8L7SV59nSW6GGbbP3N4G6w
)
|
[
Pooyan
](
https://gym.openai.com/evaluations/eval_UXFVI34MSAuNTtjZcK8N0A
)
|
[
Qbert
](
https://gym.openai.com/evaluations/eval_
S8XdrbByQ1eWLUD5jtQYIQ
)
|
[
Riverraid
](
https://gym.openai.com/evaluations/eval_OU4x3DkTfm4uaXy6CIaXg
)
|
|
[
RoadRunner
](
https://gym.openai.com/evaluations/eval_wINKQTwxT9ipydHOXBhg
)
|
[
Robotank
](
https://gym.openai.com/evaluations/eval_Gr5c0ld3QACLDPQrGdzbiw
)
|
[
Seaquest
](
https://gym.openai.com/evaluations/eval_pjjgc9POQJK4IuVw8nXlBw
)
|
[
SpaceInvaders
](
https://gym.openai.com/evaluations/eval_Eduozx4HRyqgTCVk9ltw
)
|
|
[
RoadRunner
](
https://gym.openai.com/evaluations/eval_wINKQTwxT9ipydHOXBhg
)
|
[
Robotank
](
https://gym.openai.com/evaluations/eval_Gr5c0ld3QACLDPQrGdzbiw
)
|
[
Seaquest
](
https://gym.openai.com/evaluations/eval_pjjgc9POQJK4IuVw8nXlBw
)
|
[
SpaceInvaders
](
https://gym.openai.com/evaluations/eval_Eduozx4HRyqgTCVk9ltw
)
|
|
[
StarGunner
](
https://gym.openai.com/evaluations/eval_JB5cOJXFSS2cTQ7dXK8Iag
)
|
[
Tennis
](
https://gym.openai.com/evaluations/eval_gDjJD0MMS1yLm1T0hdqI4g
)
|
[
Tutankham
](
https://gym.openai.com/evaluations/eval_gDjJD0MMS1yLm1T0hdqI4g
)
|
[
UpNDown
](
https://gym.openai.com/evaluations/eval_KmkvMJkxQFSED20wFUMdIA
)
|
|
[
StarGunner
](
https://gym.openai.com/evaluations/eval_JB5cOJXFSS2cTQ7dXK8Iag
)
|
[
Tennis
](
https://gym.openai.com/evaluations/eval_gDjJD0MMS1yLm1T0hdqI4g
)
|
[
Tutankham
](
https://gym.openai.com/evaluations/eval_gDjJD0MMS1yLm1T0hdqI4g
)
|
[
UpNDown
](
https://gym.openai.com/evaluations/eval_KmkvMJkxQFSED20wFUMdIA
)
|
|
[
VideoPinball
](
https://gym.openai.com/evaluations/eval_PWwzNhVFR2CxjYvEsPfT1g
)
|
[
WizardOfWor
](
https://gym.openai.com/evaluations/eval_1oGQhphpQhmzEMIYRrrp0A
)
|
[
Zaxxon
](
https://gym.openai.com/evaluations/eval_TIQ102EwTrHrOyve2RGfg
)
| |
|
[
VideoPinball
](
https://gym.openai.com/evaluations/eval_PWwzNhVFR2CxjYvEsPfT1g
)
|
[
WizardOfWor
](
https://gym.openai.com/evaluations/eval_1oGQhphpQhmzEMIYRrrp0A
)
|
[
Zaxxon
](
https://gym.openai.com/evaluations/eval_TIQ102EwTrHrOyve2RGfg
)
| |
...
...
examples/SpatialTransformer/mnist-addition.py
View file @
6d2a0aa1
...
@@ -58,6 +58,7 @@ class Model(ModelDesc):
...
@@ -58,6 +58,7 @@ class Model(ModelDesc):
sampled2
=
get_stn
(
image
)
sampled2
=
get_stn
(
image
)
# For visualization in tensorboard
# For visualization in tensorboard
with
tf
.
name_scope
(
'visualization'
):
padded1
=
tf
.
pad
(
sampled1
,
[[
0
,
0
],
[
HALF_DIFF
,
HALF_DIFF
],
[
HALF_DIFF
,
HALF_DIFF
],
[
0
,
0
]])
padded1
=
tf
.
pad
(
sampled1
,
[[
0
,
0
],
[
HALF_DIFF
,
HALF_DIFF
],
[
HALF_DIFF
,
HALF_DIFF
],
[
0
,
0
]])
padded2
=
tf
.
pad
(
sampled2
,
[[
0
,
0
],
[
HALF_DIFF
,
HALF_DIFF
],
[
HALF_DIFF
,
HALF_DIFF
],
[
0
,
0
]])
padded2
=
tf
.
pad
(
sampled2
,
[[
0
,
0
],
[
HALF_DIFF
,
HALF_DIFF
],
[
HALF_DIFF
,
HALF_DIFF
],
[
0
,
0
]])
img_orig
=
tf
.
concat
([
image
[:,
:,
:,
0
],
image
[:,
:,
:,
1
]],
1
)
# b x 2h x w
img_orig
=
tf
.
concat
([
image
[:,
:,
:,
0
],
image
[:,
:,
:,
1
]],
1
)
# b x 2h x w
...
@@ -118,7 +119,7 @@ def view_warp(modelpath):
...
@@ -118,7 +119,7 @@ def view_warp(modelpath):
session_init
=
get_model_loader
(
modelpath
),
session_init
=
get_model_loader
(
modelpath
),
model
=
Model
(),
model
=
Model
(),
input_names
=
[
'input'
],
input_names
=
[
'input'
],
output_names
=
[
'viz'
,
'STN1/affine'
,
'STN2/affine'
]))
output_names
=
[
'vi
sualization/vi
z'
,
'STN1/affine'
,
'STN2/affine'
]))
xys
=
np
.
array
([[
0
,
0
,
1
],
xys
=
np
.
array
([[
0
,
0
,
1
],
[
WARP_TARGET_SIZE
,
0
,
1
],
[
WARP_TARGET_SIZE
,
0
,
1
],
...
...
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