IAmSuyogJadhav / 3d-mri-brain-tumor-segmentation-using-autoencoder-regularization

Keras implementation of the paper "3D MRI brain tumor segmentation using autoencoder regularization" by Myronenko A. (https://arxiv.org/abs/1810.11654).
MIT License
369 stars 114 forks source link

ZeroDivisionError: division by zero #16

Closed asifehmad closed 4 years ago

asifehmad commented 4 years ago

Thank you so much, sir, for the repository. Sir, I am applying the code on BraTS'19 data set. I have the access for the data set. All thing went well but at the cell number 10 i got an error: `ZeroDivisionError Traceback (most recent call last)

in () 3 # Parameters for the progress bar 4 total = len(data_paths[:4]) ----> 5 step = 25 / total 6 7 for i, imgs in enumerate(data_paths[:4]): ZeroDivisionError: division by zero` Any help in this regard would be very appreciated. Thanks!
IAmSuyogJadhav commented 4 years ago

Try printing out the variable data_paths. Most probably the directory specified is incorrect.

asifehmad commented 4 years ago

Try printing out the variable data_paths. Most probably the directory specified is incorrect.

Sir, didn't get it. Please, need your more help. Could you please write the code? Would be very thankful.

asifehmad commented 4 years ago

Try printing out the variable data_paths. Most probably the directory specified is incorrect.

Sir, didn't get it. Please, need your more help. Could you please write the code? Would be very thankful.

I tried: print(data_paths) The answer: [ ]

IAmSuyogJadhav commented 4 years ago

Since printing data_paths outputs an empty list, that means either the specified path is incorrect OR there are no files in the specified path.

asifehmad commented 4 years ago

Since printing data_paths outputs an empty list, that means either the specified path is incorrect OR there are no files in the specified path.

Thank You, sir, for the response! I will check it.