k-diffusion
k-diffusion copied to clipboard
Karras samplers: refrain from advancing random generator, allocating unused tensor when gamma==0
should help with https://github.com/crowsonkb/k-diffusion/issues/25 (giving users more control over determinism), at least for Karras samplers at the default churn=0
.
this also eliminates allocation of an unused tensor on every sampler step, which in the case of stable-diffusion was 64kB.