This is the official implementation of "Image Inpainting via Tractable Steering of Diffusion Models".
Follow the readme instructions in exps/generate_images to generate inpainted images. The Probabilistic Circuits required by the generation process can either be downloaded from here or trained following the instructions in exps/lvd_training.
CelebA:
CelebA
βββ train256
β βββ 11900.jpg
β βββ 11901.jpg
β βββ ...
βββ val256
β βββ 12291.jpg
β βββ 12297.jpg
β βββ ...
ImageNet:
ImageNet
βββ train
β βββ filelist.txt
β βββ n01697457
β β βββ n01697457_11482.JPEG
β β βββ n01697457_11492.JPEG
β β βββ ...
β βββ n01698640
β β βββ ...
β βββ ...
βββ val
β βββ filelist.txt
β βββ n01698640
β β βββ ILSVRC2012_val_00000090.JPEG
β β βββ ILSVRC2012_val_00001338.JPEG
β β βββ ...
β βββ n01704323
β β βββ ...
β βββ ...
LSUN-Bedroom:
LSUN
βββ bedrooms
β βββ train
β β βββ 0
β β β βββ ...
β β βββ 1
β β β βββ ...
β βββ val
β β βββ 0
β β β βββ ...
β β βββ 1
β β β βββ ...