jakeret / tf_unet

Generic U-Net Tensorflow implementation for image segmentation
GNU General Public License v3.0
1.9k stars 748 forks source link

question #254

Open pierpy opened 5 years ago

pierpy commented 5 years ago

jDear Doctor Akeret, I found on github your interesting u-net python tool. I'm trying to use it in a project. I can train the network on my data but I have two questions:

  1. If i try to increase the number of layers I get an error;
  2. Why the origninal image is cropped? Is it possible to train on the whole immage?
  3. On the contrary, is it possible to train considering patches of the original image?

Thanks in advance

jakeret commented 5 years ago

If i try to increase the number of layers I get an error;

Without description we can't help you

Why the origninal image is cropped? Is it possible to train on the whole immage?

This is due to the network architecture using "valid" padding in the convolutional layers - you can read more on this in the original Ronneberger et al. paper

On the contrary, is it possible to train considering patches of the original image?

Yes, but you have to implement this yourself

pierpy commented 5 years ago

Thank for your reply.. i fixed the number of layers issue. For the implementation of the whole image training can you tell me which part of the code I have to modify? I guess in the store_prediction function but i can not figure out perfectly...

Il giorno lun 18 mar 2019 alle ore 15:00 Joel Akeret < notifications@github.com> ha scritto:

If i try to increase the number of layers I get an error;

Without description we can't help you

Why the origninal image is cropped? Is it possible to train on the whole immage?

This is due to the network architecture using "valid" padding in the convolutional layers - you can read more on this in the original Ronneberger et al. paper

On the contrary, is it possible to train considering patches of the original image?

Yes, but you have to implement this yourself

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jakeret/tf_unet/issues/254#issuecomment-473921630, or mute the thread https://github.com/notifications/unsubscribe-auth/AHChl8Blq7lkuyHZIggm7DKNd0U88yAdks5vX5wXgaJpZM4b5Ubo .

--

Ing. Pierpaolo Croce, PhD. Institute for Advanced Biomedical Technologies - ITAB and Department of Neuroscience and Imaging University of Chieti "G. D'Annunzio" Via dei Vestini, 33 66013 Chieti, Italy

daboe01 commented 4 years ago

@pierpy split the images to your needs before placing them into the training folder