utils/cal_dice_iou.py
def epoch_log(epoch, epoch_loss, meter, start):
    '''logging the metrics at the end of an epoch'''
    dices, iou = meter.get_metrics()
    dice, dice_neg, dice_pos = dices
    print("Loss: %0.4f | IoU: %0.4f | dice: %0.4f | dice_neg: %0.4f | dice_pos: %0.4f" % (epoch_loss, iou, dice, dice_neg, dice_pos))
    return dice, iou
logging the metrics at the end of an epoch
logging the metrics at the end of an epoch
logging the metrics at the end of an epoch
def epoch_log(epoch, epoch_loss, meter, start):
    dices, iou = meter.get_metrics()
    dice, dice_neg, dice_pos = dices
    print("Loss: %0.4f | IoU: %0.4f | dice: %0.4f | dice_neg: %0.4f | dice_pos: %0.4f" % (epoch_loss, iou, dice, dice_neg, dice_pos))
    return dice, iou
def epoch_log ( epoch , epoch_loss , meter , start ) : dices , iou = meter . get_metrics ( ) dice , dice_neg , dice_pos = dices print ( "Loss: %0.4f | IoU: %0.4f | dice: %0.4f | dice_neg: %0.4f | dice_pos: %0.4f" % ( epoch_loss , iou , dice , dice_neg , dice_pos ) ) return dice , iou
logging the metrics at the end of an epoch
logging the metrics at the end of an epoch
'''logging the metrics at the end of an epoch'''
epoch
epoch_loss
meter
start