fbgbp (pypi): Optimized belief propagation on a grid MRF with binary states.
Keywords: belief-propagation|markov-random-field