rpn_data.py 文件源码

python
阅读 33 收藏 0 点赞 0 评论 0

项目:tf-image-interpreter 作者: ThoughtWorksInc 项目源码 文件源码
def _filter_inside_anchors(self, all_anchors, height, width):
    # filter anchors
    inds_inside = tf.where(
      (all_anchors[:, 0] > 0) &
      (all_anchors[:, 1] > 0) &
      (all_anchors[:, 2] < width) &
      (all_anchors[:, 3] < height)
    )
    if self._debug:
      inds_inside = tf.Print(inds_inside, [tf.shape(inds_inside)], message='inside anchors: ')
    anchors = tf.gather(all_anchors, inds_inside)
    return anchors
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号