brain_segmentation icon indicating copy to clipboard operation
brain_segmentation copied to clipboard

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

Open darshthakkar opened this issue 8 years ago • 7 comments

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.

darshthakkar avatar Oct 09 '17 16:10 darshthakkar

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

BKShaikh avatar Oct 14 '17 20:10 BKShaikh

@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.

darshthakkar avatar Oct 27 '17 06:10 darshthakkar

@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

BKShaikh avatar Oct 27 '17 16:10 BKShaikh

@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

darshthakkar avatar Oct 28 '17 16:10 darshthakkar

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

Cesarec88 avatar Oct 29 '17 10:10 Cesarec88

@darshthakkar kindly contact me here [email protected] we can discuss it there I can help you in training phase.

BKShaikh avatar Nov 04 '17 15:11 BKShaikh

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

nagwa1 avatar Jan 15 '19 04:01 nagwa1