You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When it started to run apply_t2w_mask after the final_clip were completed and while Loading pkl: /work/nibabies_25_1_wf/single_subject_sub-MO101_ses-0_wf/infant_anat_fit_wf/apply_t2w_mask/result_apply_t2w_mask.pklz, it raised the errors about "image size and mask size not matching". After checking the dimensions from brain masks inside the derivates created by Bibsnet, they are of the same size as the original images.
Thanks for the report - likely it's due to N4 altering the T2w's header enough to cause this mismatch. To patch this, we should preserve the original header information.
Thank you so much for your prompt reply! Yes, it happened to both T1w and T2w sometimes. I actually further checked the processed T1w from the inFS, and the x y z are swapped. Accordingly, when taking the segmentation from the bibsnet (it was generated as the same orientation as the original T1w), it yelled for the dimension not match. After I worked around this by manually swapped the orientation, "the affine was not similar enough", which can be worked around by copying the affine from the header as well. It is not ideal, but if this can be fixed in the next version, it would much improved the final results. Great work, thank you all so much!!
mgxd
linked a pull request
Apr 28, 2025
that will
close
this issue
What happened?
When it started to run apply_t2w_mask after the final_clip were completed and while Loading pkl: /work/nibabies_25_1_wf/single_subject_sub-MO101_ses-0_wf/infant_anat_fit_wf/apply_t2w_mask/result_apply_t2w_mask.pklz, it raised the errors about "image size and mask size not matching". After checking the dimensions from brain masks inside the derivates created by Bibsnet, they are of the same size as the original images.
What command did you use?
What version of NiBabies are you using?
I tried the current unstable, and 25.0.1, they ended with the same errors
Relevant log output
Add any additional information or context about the problem here.
No response
The text was updated successfully, but these errors were encountered: