def deploy_evaluate(lbl, gt_lbl): pred_lbl = clean_reindex(lbl) bestDice, FgBgDice = GetDices(pred_lbl, gt_lbl) diffFG = DiffFGLabels(pred_lbl, gt_lbl) MWCov, MUCov, AvgFP, AvgFN = kitti_metric(pred_lbl, gt_lbl) rand_i = adjusted_rand_index(gt_lbl, pred_lbl) return bestDice, FgBgDice, diffFG, MWCov, MUCov, AvgFP, AvgFN, rand_i
def evaluate(args, env): pred_lbl = clean_reindex(env.lbl, args.minsize) gt_lbl = env.gt_lbl bestDice, FgBgDice = GetDices(pred_lbl, gt_lbl) diffFG = DiffFGLabels(pred_lbl, gt_lbl) MWCov, MUCov, AvgFP, AvgFN = kitti_metric(pred_lbl, gt_lbl) rand_i = adjusted_rand_index(gt_lbl, pred_lbl) return bestDice, FgBgDice, diffFG, MWCov, MUCov, AvgFP, AvgFN, rand_i