您的位置:首页 > 其它

In Theano, how to do Reverse-MaxPooling in the Convolutional MaxPooling Auto-Encoder

2015-03-07 08:59 429 查看
MaxPooling Layer always follows Convolutional Layer. But in the Convolutional MaxPooling Auto-Encoder, how to do reverse or Un-MaxPooling?

Here is the method:

neighbor box:
(2, 2)
original images:
[[[[ 15.  46.  46.  37.]
[ 73.  93.   2.  91.]
[ 97.  93.  78.   7.]
[  0.  24.  34.  26.]]]

[[[ 70.  46.   2.  93.]
[ 11.  54.  29.  83.]
[  0.  48.  69.  95.]
[ 49.  48.  10.  19.]]]]
neighbor flatten:
[[ 15.  46.  73.  93.]
[ 46.  37.   2.  91.]
[ 97.  93.   0.  24.]
[ 78.   7.  34.  26.]
[ 70.  46.  11.  54.]
[  2.  93.  29.  83.]
[  0.  48.  49.  48.]
[ 69.  95.  10.  19.]]
non maximum suppression result:
[[[[  0.   0.   0.   0.]
[  0.  93.   0.  91.]
[ 97.   0.  78.   0.]
[  0.   0.   0.   0.]]]

[[[ 70.   0.   0.  93.]
[  0.   0.   0.   0.]
[  0.   0.   0.  95.]
[ 49.   0.   0.   0.]]]]


View Code
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: