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

fully convolutional neural network in Keras #5369

Closed
wenouyang opened this issue Feb 12, 2017 · 9 comments
Closed

fully convolutional neural network in Keras #5369

wenouyang opened this issue Feb 12, 2017 · 9 comments

Comments

@wenouyang
Copy link

Dear All,

Just curious, are there any workable fully convolutional network implementation using Keras? One of the essential operation in FCN is deconvolutional operation, which seems to be able to be handled using tf.nn.conv2d_transpose in Tensorflow. In Keras, what is the corresponding layer for this? Thanks a lot.

@ahundt
Copy link
Contributor

ahundt commented Feb 12, 2017

Specific Keras Classifiers that build FCNs:

@wenouyang
Copy link
Author

wenouyang commented Feb 12, 2017

Hi ahundt, thanks for the reply.

I will temporarily keep this thread open in case some other colleagues may want to add more information.

Thanks.

@mzaradzki
Copy link

Hi,

I wrote this notebook that builds FCN-16s net and transfers the weight file from the MatConvNet site 👍

https://github.com/mzaradzki/neuralnets/tree/master/vgg_segmentation_keras

A demo segmentation performed at the end of the notebook

@mzaradzki
Copy link

fyi I also finished the FCN-8s version today :
https://github.com/mzaradzki/neuralnets/blob/master/vgg_segmentation_keras/fcn8s_tvg_for_rnncrf.ipynb

I adapted the weights trained for the FCN-RNN-CRF model, as you can see at the end of the notebook it gives great result even without the RNN-CRF layers

@ahundt
Copy link
Contributor

ahundt commented Mar 6, 2017

@mzaradzki looks cool! Would you be interested in adapting that slightly and submitting a pull request to keras-contrib? https://github.com/farizrahman4u/keras-contrib

@mzaradzki
Copy link

hi @ahundt, I was not familiar with keras-contrib but I can look into it.
What part of the code do you think should be adapted ? I was thinking of maybe giving it an optional dimension instead of the current 512x512.

@ahundt
Copy link
Contributor

ahundt commented Mar 8, 2017

@mzaradzki it is the new staging area for keras where if they're deemed sufficiently high quality the changes will be merged into keras. By adaptation I mean the code would need to fit the Keras style, example, and unit test rules and file layout.

@mzaradzki
Copy link

mzaradzki commented Mar 9, 2017

hi all,
for your information I have updated my code and demo to handle flexible image dimensions:
https://github.com/mzaradzki/neuralnets/tree/master/vgg_segmentation_keras

Also, I posted some explanations as a Medium post here:
https://medium.com/@m.zaradzki/image-segmentation-with-neural-net-d5094d571b1e#

hope it helps

@stale stale bot added the stale label Jun 13, 2017
@stale
Copy link

stale bot commented Jun 13, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed.

@stale stale bot removed the stale label Jun 13, 2017
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

3 participants