brain-segmentation-pytorch icon indicating copy to clipboard operation
brain-segmentation-pytorch copied to clipboard

A puzzle about the code

Open Agito555 opened this issue 4 years ago • 1 comments
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]

Agito555 avatar Feb 10 '21 04:02 Agito555

This removes the first and the last slice from each volume. This is done because they are often corrupted and never contain brain tissue.

mateuszbuda avatar Mar 13 '21 10:03 mateuszbuda