Skip to content

Commit

Permalink
Fix for header/bounding box bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aecelaya committed May 13, 2024
1 parent ae4a7b8 commit 508187b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions mist/inference/main_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ def back_to_original_space(pred, og_ants_img, config, fg_bbox):
if fg_bbox is not None:
pred = decrop_from_fg(pred, fg_bbox)

# FIX: Copy header from original image onto the prediction so they match
pred = og_ants_img.new_image_like(pred.numpy())

return pred


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "mist-medical"
version = "0.4.6-alpha"
version = "0.4.7-alpha"
requires-python = ">= 3.8"
description = "MIST is a simple, fully automated framework for 3D medical imaging segmentation."
readme = "README.md"
Expand Down

0 comments on commit 508187b

Please sign in to comment.