brain_segmentation icon indicating copy to clipboard operation
brain_segmentation copied to clipboard

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

Open mosbahi1 opened this issue 7 years ago • 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'

mosbahi1 avatar Jun 15 '17 11:06 mosbahi1

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. :)

Wang-Shuo avatar Jul 05 '17 11:07 Wang-Shuo

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.

mosbahi1 avatar Jul 05 '17 14:07 mosbahi1

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.

Jiyya avatar Jul 25 '17 13:07 Jiyya

@Jiyya were you able to run it successfully ?

BKShaikh avatar Sep 24 '17 16:09 BKShaikh

Any progress?

ninjakx avatar Nov 17 '19 09:11 ninjakx