soribadiaby / Deep-Learning-liver-segmentation

Application of Deep Learning to the segmentation of medical images
42 stars 22 forks source link

index error #7

Open tonmoyinsomniac opened 4 years ago

tonmoyinsomniac commented 4 years ago

I am having an index error issue while training & it showing "IndexError: index 111 is out of bounds for axis 2 with size 111". Why I am having this error. Attached an image so that you can understand clearly. error

gm039 commented 4 years ago

...............................................
train_data_path = os.path.join(data_path, 'train') images = os.listdir(train_data_path) images=sorted(images) ............................................... Add sorted to solve index problem