Just released a tiny library for making .gifs from images using PyMC3. It includes a custom
theano.Op for defining a probability density function from an image.
If anyone would like to help, it does not do a great job on color images right now. For example, here is my poor dog wearing a jedi robe:
I sort of suspect you could get a gradient based sampler (
NUTS) to work: I am just computing a cubic spline over the each RGB channel in the original image to generate the pdf, and it should be reasonable to compute that gradient analytically. Not sure if that will look nice in a .gif or .jpg, though. Anyways, take a look, and let me know what you think!