如何解释TensorBoard损失图?

时间:2018-12-12 06:05:19

标签: tensorflow tensorboard object-detection-api

TensorBoard

我正在使用Tensorflow API进行对象检测,这是其默认设置下的损耗图。您可以帮助我解释classification_losslocalization_lossobjectness_loss的区别吗?谢谢!

1 个答案:

答案 0 :(得分:0)

您可以这样计算位置损失:

def location_loss( x, y, width, height, l_x, l_y, l_width, l_height, alpha = 0.001 ):
    point_loss = ( tf.square( l_x - x ) + tf.square( l_y - y ) ) * alpha
    size_loss = ( tf.square( tf.sqrt( l_width ) - tf.sqrt( width ) ) + tf.square( tf.sqrt( l_height ) - tf.sqrt( height ) ) ) * alpha
    location_loss = point_loss + size_loss
    return location_loss

您提到的这些损失不是TensorBoard的一部分。还有另一个TensorBoard插件,您应该检查它们的源代码和定义。