def soft_dice_loss(logits, ground_truth):
probabilities = tf.sigmoid(logits)
interception_volume = tf.reduce_sum(probabilities * ground_truth)
return - 2 * interception_volume / (tf.norm(ground_truth, ord=1) + tf.norm(probabilities, ord=1))
评论列表
文章目录