Skip to content

Commit 08dc42a

Browse files
committed
ensure ncc gets picked up correctly
1 parent c12c37d commit 08dc42a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GANDLF/cli/generate_metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def __percentile_clip(
375375
if compute_ncc:
376376
calculated_ncc_metrics = ncc_metrics(output_infill, gt_image_infill)
377377
for key, value in calculated_ncc_metrics.items():
378-
overall_stats_dict[current_subject_id][key] = value.item()
378+
overall_stats_dict[current_subject_id][f"ncc_{key}"] = value.item()
379379

380380
# only voxels that are to be inferred (-> flat array)
381381
# these are required for mse, psnr, etc.

0 commit comments

Comments
 (0)