s-mostafa-a / Luna16

Developing a well-documented repository for the Lung Nodule Detection task on the Luna16 dataset. This work is inspired by the ideas of the first-placed team at DSB2017, "grt123".
MIT License
79 stars 27 forks source link

ERRORS ON PRE-PROCESSING STEP #9

Open MHansy opened 3 years ago

MHansy commented 3 years ago

Hello Sir Could you help me please, when am trying to run the pre-process step am facing the errors below...

IndexError Traceback (most recent call last)

in 57 58 if __name__ == '__main__': ---> 59 save_preprocessed_data() in save_preprocessed_data() 48 tp_co = tp_co[:max_numbers_to_use] 49 radii = radii[:max_numbers_to_use] ---> 50 ct = CTScan(seriesuid=series_id, centers=tp_co, radii=radii, clazz=0) 51 ct.preprocess() 52 ct.save_preprocessed_image() in __init__(self, seriesuid, centers, radii, clazz) 15 self._centers = centers 16 paths = glob(f'''{RESOURCES_PATH}/*/{self._seriesuid}.mhd''') ---> 17 path = paths[0] 18 self._ds = sitk.ReadImage(path) 19 self._spacing = np.array(list(reversed(self._ds.GetSpacing()))) IndexError: list index out of range