stable-diffusion icon indicating copy to clipboard operation
stable-diffusion copied to clipboard

k_heun, k_lms and other samplers

Open RafailFridman opened this issue 2 years ago • 2 comments

Hi! Thanks for the release Are there plans on releasing the samplers like k_heun and k_lms in this GitHub? k_lms is the default sampler in the discord server, and it seems to produce better results for wider ranges of cfg scale.

RafailFridman avatar Aug 14 '22 09:08 RafailFridman

implementations for those samplers can be found here: https://github.com/crowsonkb/k-diffusion

dmarx avatar Aug 14 '22 17:08 dmarx

Had the same question. What's the easiest way to take the sampler implementation from Katherine Crowson's github and integrate it with txt2img.py?

I see: from ldm.models.diffusion.plms import PLMSSampler in txt2img and I see where that sampler is getting set later in the code, but I'm not sure how to add k_lms.

terekita avatar Aug 14 '22 20:08 terekita

Also wondering about this.

LexCybermac avatar Aug 22 '22 21:08 LexCybermac

Is there already a way to change the sampler?

JantineD avatar Oct 18 '22 09:10 JantineD

Any news on this ?

Sannijiv avatar Jul 15 '23 12:07 Sannijiv