brain-segmentation-pytorch
brain-segmentation-pytorch copied to clipboard
A puzzle about the code
trafficstars
Thanks for ur sharing and ur work is really cool! I have a puzzle about ur code in dataset.py , what is ur point in linë 48 and linë 49? volumes[patient_id] = np.array(image_slices[1:-1]) masks[patient_id] = np.array(mask_slices[1:-1])
if u want to store the all corresponding data in the dictionary ,why not implement like this, say ,
volumes[patient_id] = np.array(image_slices)
i mean ,if the code is implemented as u do, dosen't it miss the data about image_slice[0] and image_slice[-1]
This removes the first and the last slice from each volume. This is done because they are often corrupted and never contain brain tissue.