lucasb-eyer / pydensecrf

Python wrapper to Philipp Krähenbühl's dense (fully connected) CRFs with gaussian edge potentials.
MIT License
1.93k stars 411 forks source link

How to explicitly Indicate a kernal #86

Open mickeysjm opened 5 years ago

mickeysjm commented 5 years ago

Hi @lucasb-eyer,

Thanks for this great code. I am wondering how can I explicitly specify a kernal. In the readme file, you say there are three possible values for the kernel argument (i.e., CONST_KERNEL, DIAG_KERNEL (the default), and FULL_KERNEL) which specifies the kernel's precision-matrix Λ(m). Suppose I can precompute a Λ(m) and want to pass it when I call the addPairwiseEnergy() function, is there a way that I can do this?

Thanks.