Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix small bug in calc metric #99

Merged
merged 1 commit into from
Oct 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix small bug in calc metric
  • Loading branch information
anselmwang committed Oct 1, 2019
commit 7d2689ca8be519ee03b03485ea3ada282405c70b
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