Skip to content

Conversation

@Kirscher
Copy link
Contributor

Fixes # .
handle metadata loading and shape calculation in transforms

Description

  • Add image_only=False and ensure_channel_first=True to LoadImaged transform to properly load metadata
  • Fix shape mismatch in PreprocessAnisotropic.calculate_new_shape by handling 4D input shapes
  • Addresses KeyError: 'image_meta_dict' and ValueError: operands could not be broadcast together

Note: The metadata loading issue might be related to MONAI version differences.
Current version: 1.4.0

Checks

  • Avoid including large-size files in the PR.
  • Clean up long text outputs from code cells in the notebook.
  • For security purposes, please check the contents and remove any sensitive info such as user names and private key.

@ericspod ericspod requested a review from KumoLiu May 15, 2025 21:57
Copy link
Member

@ericspod ericspod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'm good with this now. Please address the DCO issue and we can merge.

@ericspod ericspod enabled auto-merge (squash) May 16, 2025 13:14
DCO Remediation Commit for Tristan Kirscher <[email protected]>

I, Tristan Kirscher <[email protected]>, hereby add my Signed-off-by to this commit: f8810ad

Signed-off-by: Tristan Kirscher <[email protected]>


Signed-off-by: Tristan Kirscher <[email protected]>
auto-merge was automatically disabled May 16, 2025 13:30

Head branch was pushed to by a user without write access

@Kirscher
Copy link
Contributor Author

DCO addressed, thanks

@ericspod ericspod merged commit 75c44e0 into Project-MONAI:main May 16, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants