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

when I execute Segmentation_Models. py I have this error I download the database but I don't know how can I add to the path or where can I placed in folder code #11

Open
mosbahi1 opened this issue Jun 15, 2017 · 5 comments

Comments

@mosbahi1
Copy link

Using TensorFlow backend.
Finding patches of class 0... ] 0%
Traceback (most recent call last):
File "Segmentation_Models.py", line 377, in
X,y = patches.make_training_patches()
File "brain_segmentation-master/code/patch_library.py", line 155, in make_training_patches
p, l = self.find_patches(classes[i], per_class)
File "/brain_segmentation-master/code/patch_library.py", line 47, in find_patches
label = io.imread('Labels/' + fn[:-4] + 'L.png')
File ".local/lib/python2.7/site-packages/skimage/io/_io.py", line 61, in imread
img = call_plugin('imread', fname, plugin=plugin, **plugin_args)
File ".local/lib/python2.7/site-packages/skimage/io/manage_plugins.py", line 211, in call_plugin
return func(*args, **kwargs)
File ".local/lib/python2.7/site-packages/skimage/io/_plugins/pil_plugin.py", line 35, in imread
with open(fname, 'rb') as f:
IOError: [Errno 2] No such file or directory: 'Labels/LaL.png'

@Wang-Shuo
Copy link

it seems that you have to run brain_pipeline.py first to generate training images and label images. the label images will be created in directory Labels(you have to create Labels directory in advance).

hope it helps. :)

@mosbahi1
Copy link
Author

mosbahi1 commented Jul 5, 2017

Thank you for your help
I run brain-pipeline. py first and the other files of the project I run finally Segmentation_Models. py but I have the same problem.

@Jiyya
Copy link

Jiyya commented Jul 25, 2017

Is there anyone who can help to run this code successfully? I am unable to find segmented images ? I don't know what will happen after running first file. I am not getting any error in code but i dont know where to find resulted images.

@BKShaikh
Copy link

@Jiyya were you able to run it successfully ?

@ninjakx
Copy link

ninjakx commented Nov 17, 2019

Any progress?

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

5 participants