【发布时间】:2017-04-06 09:10:03
【问题描述】:
【问题讨论】:
标签: image-processing tensorflow computer-vision deep-learning detection
【问题讨论】:
标签: image-processing tensorflow computer-vision deep-learning detection
假设我们有一个(3,2,36) conv 的结果。
注意:
36 = 4 * 9
所以在reshape之后,(3,2)的每个点都有9个proposal。
如程序所示:
import numpy as np
a = [[[1]*36,[2]*36],[[3]*36,[4]*36],[[5]*36,[6]*36]]
a = np.array(a)
print(a.reshape([-1,4]))
在程序中,每个(3,2)的特征图都是[[1,2],[3,4],[5,6]]。
打印结果:
[[1 1 1 1]
[1 1 1 1]
[1 1 1 1]
[1 1 1 1]
[1 1 1 1]
[1 1 1 1]
[1 1 1 1]
[1 1 1 1]
[1 1 1 1]
[2 2 2 2]
[2 2 2 2]
[2 2 2 2]
[2 2 2 2]
[2 2 2 2]
[2 2 2 2]
[2 2 2 2]
[2 2 2 2]
[2 2 2 2]
[3 3 3 3]
[3 3 3 3]
[3 3 3 3]
[3 3 3 3]
[3 3 3 3]
[3 3 3 3]
[3 3 3 3]
[3 3 3 3]
[3 3 3 3]
[4 4 4 4]
[4 4 4 4]
[4 4 4 4]
[4 4 4 4]
[4 4 4 4]
[4 4 4 4]
[4 4 4 4]
[4 4 4 4]
[4 4 4 4]
[5 5 5 5]
[5 5 5 5]
[5 5 5 5]
[5 5 5 5]
[5 5 5 5]
[5 5 5 5]
[5 5 5 5]
[5 5 5 5]
[5 5 5 5]
[6 6 6 6]
[6 6 6 6]
[6 6 6 6]
[6 6 6 6]
[6 6 6 6]
[6 6 6 6]
[6 6 6 6]
[6 6 6 6]
[6 6 6 6]]
【讨论】: