@leejet, hello and thank you for the program. In recent PR https://github.com/leejet/stable-diffusion.cpp/pull/1843 I managed to make an error in 3 lines of code: https://github.com/leejet/stable-diffusion.cpp/blob/eb7f35ca4993d90fe9c7844b13166546a3e344b7/src/runtime/denoiser.hpp#L2646 And misindexed the hist[]: 2, 2, 1 instead of 2, 1, 0. ( hist.back() == hist[hist.size() - 1] ) The problem is that fixed version does not work even with 50 steps. https://github.com/vmobilis/stable-diffusion.cpp/blob/fix-lms/src/runtime/denoiser.hpp#L2643_L2659 <table> <tr><td>wrong 20</td><td>fixed 20</td><td>fixed 50</td></tr> <tr><td><img width="512" height="512" alt="Image" src="https://github.com/user-attachments/assets/7da1732a-4d24-40a3-af1d-4a3bd70095b6" /></td> <td> <img width="512" height="512" alt="Image" src="https://github.com/user-attachments/assets/bbbfa83f-0f7b-494b-af19-c165624d6815" /></td> <td> <img width="512" height="512" alt="Image" src="https://github.com/user-attachments/assets/460ba368-aa4b-4e08-b92e-9da1194e0b01" /></td> </tr> </table> What should I do, remove LMS sampler or name it differently?
Activity
vmobilis commentedon Aug 5, 2026
I'll make it more configurable.