-
Notifications
You must be signed in to change notification settings - Fork 3
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
How can I apply CRF with image? #3
Comments
Hi sangrockEG, |
Hi, ArthurDevlieger. |
So than you just tuned the CRF parameters on a validation set or something? And which denseCRF implementation did you use? |
I used pydenseCRF with commonly used parameters. d.addPairwiseGaussian(sxy=3/scale_factor, compat=3) I can't sure this setting is general for all cases, but it works pretty well in my case. (PASCAL VOC 2012) |
@sangrockEG , @ArthurDevlieger , in the current implementation, the pairwise potential kernel function includes only smoothness kernel term, which does not depend on the input image. Therefore, image is not fed as input to CRF.forward. Unfortunately, the appearance kernel term (which requires an image as input) is not supported for now. |
Hello.
I tried to apply your CRF-layer to my semantic segmentation model.
But I found that the layer does not get an image as its input.
forward(self, x, spatial_spacings=None, verbose=False)
x is an output of my model, which functions as a unary potential, right?
At first, I thought the spatial_spacings is somewhat related to the data term, but it seems not...
(Because it has a shape of (batch_size, len(spatial)).)
Any help will be really appreciated.
The text was updated successfully, but these errors were encountered: