The following files contain the code for the main algorithms introduced in the paper:
- ddim.py contains code on guided sampling at a single scale [Alg. 1]
- lighting.py contains code for performing light direction inference, clustering and flipping. [Alg. 2]
Multiscale guidance is a combination of the above two algorithms with different resolutions following a V-cycle.