naldeborgh7575 / brain_segmentation

MIT License
301 stars 186 forks source link

ValueError: Value out of range, should be between 0 and 176 #16

Open darshthakkar opened 7 years ago

darshthakkar commented 7 years ago

Windows 10 Python 3.6 Brats 2013 datase (HG/LG)

Traceback (most recent call last): File "D:/Darsh/Nirma/Semester 7/Trial/nn-segmentation-for-lar-master/brain_tumor_segmentation_cnn/brain_pipeline.py", line 234, in save_patient_slices(patients, 'reg') File "D:/Darsh/Nirma/Semester 7/Trial/nn-segmentation-for-lar-master/brain_tumor_segmentation_cnn/brain_pipeline.py", line 202, in save_patient_slices a.save_patient(type_modality, patient_num) File "D:/Darsh/Nirma/Semester 7/Trial/nn-segmentation-for-lar-master/brain_tumor_segmentation_cnn/brain_pipeline.py", line 154, in save_patient for slice_ix in progress(range(176)): File "C:\Users\DELL\AppData\Local\conda\conda\envs\tensorflow\lib\site-packages\progressbar\bar.py", line 433, in next self.update(self.value + 1) File "C:\Users\DELL\AppData\Local\conda\conda\envs\tensorflow\lib\site-packages\progressbar\bar.py", line 553, in update % (self.min_value, self.max_value)) ValueError: Value out of range, should be between 0 and 176

Process finished with exit code 1

Above is the error i'm getting after several images are created for the first iteration.

BKShaikh commented 7 years ago

idk why this error is causing but i tackled it by commenting norm and n4 first and run "reg" only basically i ran one at a time.. so it made patches correctly for me by this trick of running one at a time

darshthakkar commented 6 years ago

@BKShaikh I was able to run brain pipeline in python 2.7 successfully. However the main program of brain segmentation is giving some errors in the in built python files.

BKShaikh commented 6 years ago

@darshthakkar i'm able to run brain pipeline also training part of segmentation file but i'm stuck in testing phase i'm not able to run that testing phase of this code maybe i'm not giving right format of testing data but getting this error and not able to find out why i'm getting this error 22790866_10210334047647589_300691204_o

darshthakkar commented 6 years ago

@BKShaikh I'm not sure what the error is about, there seems to be a type mismatch but I think if the author - @naldeborgh7575 reply's, it will be osf some use.

@BKShaikh I'm getting this error when I try to train the model, if you could help, it would be great.

image

Cesarec88 commented 6 years ago

@darshthakkar it looks like that your code is trying to get a wrong image format i think you should only change the range research

BKShaikh commented 6 years ago

@darshthakkar kindly contact me here bilal_shaikh@live.com we can discuss it there I can help you in training phase.

nagwa1 commented 5 years ago

hi ,i have the problem value out of range, should be between 0 and 176 #16 can any one solve it