Liver and spleen segmentation using modified version of 2.5D DeepLabV3+
- Modify
root_path,project_path,raw_data_path,result_pathfrom config.py. - Place a shape file at
raw_data_path/segment/trn_shp.npy. This .npy file should contain size of z-axis of each image since the input data will be flattened. - Place a data file at
raw_data_path/segment/trn_dat.npy. This .npy file should contain raw dicom pixel values in the shape of (N, 512,512). - Place a segmentation mask file at
raw_data_path/segment/trn_lbl.npy. This .npy file should contain integer values in the shape of (N, 512,512), (0-background, 1-spleen, 2-liver). - Place a segmentation mask file at
raw_data_path/trn_bound_mask_2d.npy. This .npy file should contain boolean values of the liver and spleen boundary in the shape of (N, 512, 512). - run
python main.py.
- Download and unzip pretrained model.
- Place .dcm files in a folder.
- Modify
ckptandin_dirin test_seg.py. - run
python test_seg.py