pe.api.image.improved_diffusion_lib.gaussian_diffusion module
This code contains minor edits from the original code at https://github.com/openai/improved-diffusion/blob/main/improved_diffusion/gaussian_diffusion.py and https://github.com/openai/improved-diffusion/blob/main/improved_diffusion/script_util.py to support sampling from the middle of the diffusion process with start_t and start_image arguments.