3DUX-Net icon indicating copy to clipboard operation
3DUX-Net copied to clipboard

MRI Segementation Problem

Open YY2968218397 opened this issue 5 months ago • 0 comments

thank you very mush!!!!!!!!!!!!!!!

issue1: in amos2022 ct dataset, the opensource 3duxnet weight is good; but it is bad in amos2022 mri dataset; do the mri dataset weight is opensource?

issue2: in amos2022 ct dataset, the code is ok, i get the train result as the paper; but in amos2022 mri dataset,the code is bad,seem the "load_datasets_transforms.py)" is designed for ct, when face amos2022 mri dataset, the code below should be what?

elif dataset == 'amos': train_transforms = Compose( [ LoadImaged(keys=["image", "label"]), AddChanneld(keys=["image", "label"]), Spacingd(keys=["image", "label"], pixdim=( 1.5, 1.5, 2.0), mode=("bilinear", "nearest")), Orientationd(keys=["image", "label"], axcodes="RAS"), ScaleIntensityRanged( keys=["image"], a_min=-125, a_max=275, b_min=0.0, b_max=1.0, clip=True, ), CropForegroundd(keys=["image", "label"], source_key="image"), RandCropByPosNegLabeld( keys=["image", "label"], label_key="label", spatial_size=(96, 96, 96), pos=1, neg=1, num_samples=crop_samples, image_key="image", image_threshold=0, ), RandShiftIntensityd( keys=["image"], offsets=0.10, prob=0.50, ), RandAffined( keys=['image', 'label'], mode=('bilinear', 'nearest'), prob=1.0, spatial_size=(96, 96, 96), rotate_range=(0, 0, np.pi / 30), scale_range=(0.1, 0.1, 0.1)), ToTensord(keys=["image", "label"]), ] )

    val_transforms = Compose(
        [
            LoadImaged(keys=["image", "label"]),
            AddChanneld(keys=["image", "label"]),
            Spacingd(keys=["image", "label"], pixdim=(
                1.5, 1.5, 2.0), mode=("bilinear", "nearest")),
            Orientationd(keys=["image", "label"], axcodes="RAS"),
            ScaleIntensityRanged(
                keys=["image"], a_min=-125, a_max=275,
                b_min=0.0, b_max=1.0, clip=True,
            ),
            CropForegroundd(keys=["image", "label"], source_key="image"),
            ToTensord(keys=["image", "label"]),
        ]
    )

    test_transforms = Compose(
        [
            LoadImaged(keys=["image"]),
            AddChanneld(keys=["image"]),
            Spacingd(keys=["image"], pixdim=(
                1.5, 1.5, 2.0), mode=("bilinear")),
            Orientationd(keys=["image"], axcodes="RAS"),
            ScaleIntensityRanged(
                keys=["image"], a_min=-125, a_max=275,
                b_min=0.0, b_max=1.0, clip=True,
            ),
            CropForegroundd(keys=["image"], source_key="image"),
            ToTensord(keys=["image"]),
        ]
    )

YY2968218397 avatar Nov 11 '25 03:11 YY2968218397