"git@developer.sourcefind.cn:zhaoyu6/sglang.git" did not exist on "30d20ce84fa5d53909271fd7db403cedede2602a"
The proper syntax is `dcrf.DenseCRF2D(img.shape[1], img.shape[0], M)`.
This has to do with C-ordering versus Fortran ordering, also known as https://en.wikipedia.org/wiki/Row-major_order This bug appears with the following parameters: d.addPairwiseGaussian(sxy=3, compat=0) d.addPairwiseBilateral(sxy=3, srgb=5, rgbim=img, compat=50) And this is confirmed by this other Python wrapper for densecrf: see the order (D, W, H) at this line: https://github.com/mbickel/DenseInferenceWrapper/blob/master/denseinference/lib/libDenseCRF/densecrf.cpp#L139 while the original 2D code is (H,W).
Showing
Please register or sign in to comment