pydensecrf
pydensecrf copied to clipboard
Python wrapper to Philipp Krähenbühl's dense (fully connected) CRFs with gaussian edge potentials.
Running `pip install pydensecrf` under python3.7 produces the following information: pydensecrf/eigen.cpp:17032:21: error: no member named 'exc_type' in '_ts' *type = tstate->exc_type; ~~~~~~ ^ pydensecrf/eigen.cpp:17033:22: error: no member named 'exc_value' in...
Thanks for the wonderful work. Although this issue is not critical for me, for those whom it may concern I just wanted to share that `pip install pydensecrf` fails on...
Fresh install, trying to follow readme for generic non-2D, get ```AttributeError: module 'pydensecrf.densecrf' has no attribute 'addPairwiseEnergy'```
I am currently running the same python code doing inference in two different python versions with very different efficiencies. First I run it in python 2.7, which is the target...
My Code: ``` def mask_smoothen(img, mask, nclasses): mask = mask.astype(np.float32) #mask.astype(np.uint8) image = img height, width, channels = image.shape d = dcrf.DenseCRF2D(height, width, nclasses) labels = mask.T U = unary_from_softmax(labels)...
my image: ![test](https://user-images.githubusercontent.com/34981481/61123101-1263d580-a4d6-11e9-8a5f-289c0bb61644.jpg) result: ![mask](https://user-images.githubusercontent.com/34981481/61123422-e09f3e80-a4d6-11e9-84ea-d4ef04193faf.jpg) I use the code like this: ```python d = dcrf.DenseCRF2D(640, 368, 4) prediction1 = prediction1.reshape((4, -1)) d.setUnaryEnergy(prediction1.astype(np.float32)) d.addPairwiseGaussian(sxy=3, compat=3) cv2.imwrite('test.jpg', (image[i]/.016 + 128).astype(np.uint8)) d.addPairwiseBilateral(sxy=(80, 80),...
I installed the library using pip and it was installed successfully. It works fine in root conda, but when I tried to access in one of conda environment it throws...
Hi, thanks for such a detailed beginner's guide and manual. I am confused on the Non-RGB cases, as the instance is presented on Greyscale images. Recently, I m using this...
I am a beginner, I am sorry to bother you that the kl-Divergence I had got is a negative number, and I do not know why, is it normal? By...
Hi. I am curious that since the learning step is not wrapped, where do the parameters of densecrf come from? Are the parameters hard-coded? Thank you in advance.