【发布时间】:2021-08-06 14:21:20
【问题描述】:
在编写 Yolo version1 损失函数时,我在这行代码中遇到了这个错误:
box_predictions[..., 2:4] = tf.Variable((tf.math.sign(box_predictions[..., 2:4])) * (tf.math.abs(box_predictions[..., 2:4])))
即使使用这些代码行,它也会显示相同的错误:
box11 = tf.math.sign(box_predictions[..., 2:4])
box12 = tf.math.abs(box_predictions[..., 2:4])
box_predictions[..., 2:4] = box11 * box12
【问题讨论】:
-
错误发生在哪一行?
-
在这行
box_predictions[..., 2:4] = tf.Variable((tf.math.sign(box_predictions[..., 2:4])) * (tf.math.abs(box_predictions[..., 2:4])))
标签: python tensorflow deep-learning yolo