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

question about addPairwiseGaussian and addPairwiseBilateral #45

Closed
qdinfish opened this issue Sep 21, 2017 · 6 comments
Closed

question about addPairwiseGaussian and addPairwiseBilateral #45

qdinfish opened this issue Sep 21, 2017 · 6 comments

Comments

@qdinfish
Copy link

Hi,

I didn't understand what are the means of sxy=3 , sxy=80 and srgb=13?

Could you help it ?

Thanks

d.addPairwiseGaussian(sxy=3, compat=3)
d.addPairwiseBilateral(sxy=80, srgb=13, rgbim=im, compat=10)

@howardgriffin
Copy link

I have the same question .Do you understand now?

@Toz3wm
Copy link

Toz3wm commented Feb 13, 2018

From the original paper "Efficient Inference in Fully Connected CRFs with Gaussian Edge Potentials", this formula :
capture du 2018-02-13 13-50-37

I think sxy in addPairWiseGaussian is theta_c, and sxy and srgb are respectively theta_a and theta_b. I might be wrong, however if this is not the case, then I don't see a hyper parameter that could fit to this sxy.

@dingfg
Copy link

dingfg commented Mar 2, 2018

sxy(PosXStd and PosYStd)
sxy(Bi_X_Std and Bi_Y_Std), srgb(Bi_R_Std , Bi_G_Std and Bi_B_Std)

@lucasb-eyer
Copy link
Owner

@Toz3wm is correct (again 😄) and @dingfg is correct too. I have added a note to the README.

@IssamLaradji
Copy link

what does compat refer to in the formula ? is it w ?

@lucasb-eyer
Copy link
Owner

@IssamLaradji from the readme:

These are label-compatibilites µ(xi, xj)

which is what they are called in the paper too. They are not visible in the formula screen-shotted by @Toz3wm.

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

6 participants