basujindal / stable-diffusion

Optimized Stable Diffusion modified to run on lower GPU VRAM
Other
3.14k stars 469 forks source link

Implement callback support for DDIM sampler #167

Open kylewlacy opened 1 year ago

kylewlacy commented 1 year ago

This PR updates the optimizedSD's DDIM sampler to support passing in callbacks via the callback and img_callback args, just like what the PLMS sampler supports. These arguments automatically get passed when calling the DDPM.sample() method, so it now automatically works regardless of the sampler used.