human_pose_nn.py 文件源码

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

项目:gait-recognition 作者: marian-margeta 项目源码 文件源码
def _joint_positions(self):
        highest_activation = tf.reduce_max(self.sigm_network, [1, 2])
        x = tf.argmax(tf.reduce_max(self.smoothed_sigm_network, 1), 1)
        y = tf.argmax(tf.reduce_max(self.smoothed_sigm_network, 2), 1)

        x = tf.cast(x, tf.float32)
        y = tf.cast(y, tf.float32)
        a = tf.cast(highest_activation, tf.float32)

        scale_coef = (self.image_size / self.heatmap_size)
        x *= scale_coef
        y *= scale_coef

        out = tf.stack([y, x, a])

        return out
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号