-
Notifications
You must be signed in to change notification settings - Fork 169
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
Using the CRF layer with some other segmentation network #46
Comments
Hi, |
No |
|
i have done this in my own keras network. |
Can you share your code? Thanks. |
I add the crfrnn layer in my model such as unet as following, but I dose not know whether is right.
|
|
Hi, if it is done in this way, does the CRF be trained? |
Hi,
I wish to use the CRF layer with my own segmentation network which is an encoder-decoder network with skip connections. If I use the crf layer as the last layer what kind of things I should keep in mind?
The output of my model has number of channels equal to number of classes (2 in my case) and activation is sigmoid. I connect this layer directly with the CRF layer without any modification to CRF parameters like theta_alpha, theta_beta and theta_gamma. The final loss function that I am using is binary cross entropy. Output of the CRF is being directly fed to the loss function. At the time of inference I am taking argmax for getting the labels. But the output label for every pixel is mostly the same.
Can anyone please help me to understand that what are the things that are particular to the FCN output such that the CRF layer works with it?
Also, If you could please share the training script?
The text was updated successfully, but these errors were encountered: