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

Segmentation_Models.py IndexError: list index out of range #26

Open
jake1412 opened this issue Oct 17, 2018 · 0 comments
Open

Segmentation_Models.py IndexError: list index out of range #26

jake1412 opened this issue Oct 17, 2018 · 0 comments

Comments

@jake1412
Copy link

On running the Segmentation_Models.py file I get the following error:
System: Mac
Keras: 1.0.0
Tensorflow: 0.12.0

Jacobs-MacBook-Pro:code jacobjohn$ python Segmentation_Models.py 
Using TensorFlow backend.
Finding patches of class 0...                                                                      ]  0% 
Traceback (most recent call last):
  File "Segmentation_Models.py", line 376, in <module>
    X,y = patches.make_training_patches()
  File "/Users/jacobjohn/Codes/brain_segmentation-master/code/patch_library.py", line 155, in make_training_patches
    p, l = self.find_patches(classes[i], per_class)
  File "/Users/jacobjohn/Codes/brain_segmentation-master/code/patch_library.py", line 45, in find_patches
    im_path = random.choice(self.train_data)
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/random.py", line 277, in choice
    return seq[int(self.random() * len(seq))]  # raises IndexError if seq is empty
IndexError: list index out of range
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

1 participant