Closed A-little-candy closed 1 month ago
I find it is cut in the 15th image every time. Maybe it's because the 15th image is from another dataset.
Here is its metadata. Hope someone can find sth not right.
Solved
add this
nib.Nifti1Header.quaternion_threshold = -1e-06
from https://github.com/spinalcordtoolbox/spinalcordtoolbox/issues/3703
not monai problem but nibabel problem
I am reproducing a sam method and use MONAI to preprocess my 3D image like the raw code. It seems to run well at first, but after a while it will show such an error. I can't see the inside process, so I don't know what's wrong with it and how to fix it. Hope someone could tell me. Sincere gratitude for you. Here is my error result:
and Here is my code:
`
train_transforms = Compose( [
LoadImaged(keys=["image", "label"], ensure_channel_first=True), ScaleIntensityRanged( keys=["image"], a_min=0, a_max=5000, b_min=0.0, b_max=1.0, clip=True, ), CropForegroundd(keys=["image", "label"], source_key="image"), Orientationd(keys=["image", "label"], axcodes="RAS"),
Spacingd(
`