You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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'
The text was updated successfully, but these errors were encountered:
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).
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.
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.
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'
The text was updated successfully, but these errors were encountered: