Skip to content

Commit

Permalink
fixing error
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthakpati committed Dec 19, 2024
1 parent 8b9a797 commit 1e9447c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GANDLF/cli/generate_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@ def __percentile_clip(
if compute_ncc:
calculated_ncc_metrics = ncc_metrics(output_infill, gt_image_infill)
for key, value in calculated_ncc_metrics.items():
overall_stats_dict[current_subject_id][key] = value.item()
# we don't need the ".item()" here, since the values are already scalars
overall_stats_dict[current_subject_id][key] = value

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

0 comments on commit 1e9447c

Please sign in to comment.