Skip to content

Commit

Permalink
Merge pull request namisan#99 from namisan/fix_calc_metrics
Browse files Browse the repository at this point in the history
fix small bug in calc metric
  • Loading branch information
anselmwang committed Oct 3, 2019
2 parents 3154388 + 7d2689c commit a579971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions calc_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ def generate_golds_predictions_scores(sample_id_2_pred_score_seg_dic, sample_obj
n_class = task_defs.n_class_map[task]
sample_id_2_pred_score_seg_dic = load_score_file(args.score, n_class)

data_format = task_defs.data_format_map[task]
data_type = task_defs.data_type_map[task]
task_type = task_defs.task_type_map[task]
label_mapper = task_defs.global_map.get(task, None)
sample_objs = load_data(args.std_input, data_format, task_type, label_mapper)
sample_objs = load_data(args.std_input, data_type, task_type, label_mapper)

golds, predictions, scores = generate_golds_predictions_scores(sample_id_2_pred_score_seg_dic, sample_objs)

Expand Down

0 comments on commit a579971

Please sign in to comment.