This was used in the single-example diffusion example: https://ojs.aaai.org/index.php/AAAI/article/view/28865