model.py 文件源码

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

项目:ISLES2017 作者: MiguelMonteiro 项目源码 文件源码
def dice_coefficient(volume_1, volume_2):
    with tf.variable_scope('calc_dice_coefficient'):
        intersection = tf.reduce_sum(volume_1 * volume_2)
        size_i1 = tf.norm(volume_1, ord=1)
        size_i2 = tf.norm(volume_2, ord=1)
        return 2 * intersection / (size_i1 + size_i2)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号