Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
darshthakkar opened this issue Oct 9, 2017 · 7 comments
Open

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

darshthakkar opened this issue Oct 9, 2017 · 7 comments

Comments

@darshthakkar
Copy link

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
Copy link

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
Copy link
Author

@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
Copy link

@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
Copy link
Author

@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
Copy link

@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
Copy link

BKShaikh commented Nov 4, 2017

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

@nagwa1
Copy link

nagwa1 commented Jan 15, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants