This is alternative version of DPM++ 2M Karras sampler.
I don't claim that this sampler ultimate or best, but I use it on a regular basis, cause I realy like the cleanliness and soft colors of the images that this sampler generates.
The results may not be obvious at first glance, examine the details in full resolution to see the difference (especially in dark areas, backgrounds and eyes).
I have nothing to do with the creation or modification of this sampler. All material and info was taken from Reddit.
All credits go to hallatore.
Original github page.
More examples:
IMPORTANT! Before installing, back up the original file.
To install this sampler, download the file, unzip it and put it in a folder stable-diffusion-webui/modules/ and rename to sd_samplers_kdiffusion.py if necessary.

Then you should reload (whole SD not only UI) and you will see this:

Description
FAQ
Comments (18)
Change the name of sd_samplers_kdiffusion.py originally in C:\Users\user\Desktop\stable-diffusion-webui-1.6.0\stable-diffusion-webui-1.6.0\modules to sd_samplers_kdiffusion1.py, and then download the Copy and paste sd_samplers_kdiffusion.py into the C:\Users\user\Desktop\stable-diffusion-webui-1.6.0\stable-diffusion-webui-1.6.0\modules folder to support stable-diffusion-webui-1.6. 0
將原來在C:\Users\user\Desktop\stable-diffusion-webui-1.6.0\stable-diffusion-webui-1.6.0\modules裡面的sd_samplers_kdiffusion.py名稱改成sd_samplers_kdiffusion1.py,然後在把下載的sd_samplers_kdiffusion.py複製貼到C:\Users\user\Desktop\stable-diffusion-webui-1.6.0\stable-diffusion-webui-1.6.0\modules資料夾裡面就可以支援stable-diffusion-webui-1.6.0
舊的sd_samplers_kdiffusion檔案不能刪除或是覆蓋,必須保留,會再度使用到舊的sd_samplers_kdiffusion檔案
谢谢,我现在能在1.6中使用它了
still not working in 1.6 .. i work with controlnet.
如果使用comfyUI,该如何使用这个采样器,没有找到modules这个文件夹
If you are using ComfyUI, here's how to use this sampler. However, I couldn't find the "modules" folder.
This is my favorite sampler! It "blends in" with adetailer super well. Now that DPM 3M is out, any plans to update it...? :)
for anyone that wants to use this in comfyui you can try my method
1- open the downloaded "sd_samplers_kdiffusion.py" file and copy the section that starts with "def sample_dpmpp_2m_alt" all the way to the return node from line 50 to line 75
2- go to "ComfyUI\comfy\k_diffusion" folder and open the "sampling.py" and paste it under the "def sample_dpmpp_2m" section under the return node should be from line 595 to line 620 (DONT FORGET THE "@torch.no_grad()" LINE)
3- go to "ComfyUI\comfy" folder and open "samplers.py" file then add "dpmpp_2m_alt," to the variable named "KSAMPLER_NAMES" at line 530
this method worked for me but i have no idea if what i did is the right way of doing it im just winging it as i go along so do this to your own acorde
line 523 for variable name for me but worked, thank you couldnt find any info anywhere on how to
@EntroPreak good to know incase other miss it and i forgot to mention that i am using the unstable version of comfyui just in case someone else comes across this post
May I know how it should be used in comfyUI? Thank you very much.
pudiste hacerlo?
📂💾🗃️🖼️🎨️📐✨
AttributeError: 'Options' object has no attribute 'k_sched_type'
nothing works anymore x.x
same issue
same issue here also
I just had to remove it. no two ways about it.
I get this error when I use this: AttributeError: 'Options' object has no attribute 'k_sched_type'
I had the same symptoms.
The 1.30 version works well.
update?











