【问题标题】:Faster RCNN, Why does conv's result can become the bbox_deltas?Faster RCNN,为什么conv的结果可以变成bbox_deltas?
【发布时间】:2017-04-06 09:10:03
【问题描述】:

Herehere 是代码。

我很困惑rpn_bbox_pred 只是卷积的结果。

rpn_bbox_pred 正在变成bbox_deltas

我无法理解。

【问题讨论】:

    标签: image-processing tensorflow computer-vision deep-learning detection


    【解决方案1】:

    假设我们有一个(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]]
    

    【讨论】:

      猜你喜欢
      • 2021-03-03
      • 1970-01-01
      • 2020-12-24
      • 2018-05-01
      • 2018-06-14
      • 1970-01-01
      • 2020-06-17
      • 2016-09-26
      • 1970-01-01
      相关资源
      最近更新 更多