-
Notifications
You must be signed in to change notification settings - Fork 8.4k
add OptimalSteps
#7584
8000
h1>
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add OptimalSteps #7584
Conversation
Hi, sorry, I have a few questions and would appreciate some clarification:
Thanks for your time My Specification
After a couple of testing:
|
Very cool. This method appears to work for SDXL too. I normally generate images in ~8 steps using DMD2, but I added the following noise schedule to the OptimalSteps node and am seeing great results in only 4-5 steps:
Pairs well with the LCM or Euler A samplers. These levels were adapted from the AYS scheduler. Not 100% sure on my math--maybe someone can suggest better values--but so far I'm impressed with the results. And for Flux, it's a total gamechanger. That model needs all the help it can get, as far as inference speed goes. |
Thank you for your interest and for reaching out here. Here are some clarifications:
Although the default workflow is the one we recommend, feel free to try other combinations to find interesting things! Finally, We are glad our research was able to help or even bring a little excitement to you! Feel free to contact me for any problems or something we can help! |
hi there, very excited about this! prompt used: |
Sorry if this is a silly question, I can't seem to use the scheduler. I've updated comfyUI, interface and all. Any input is appreciated, thanks! RTX4090 - Pytorch 12.8. |
Switched to ComfyUI Nightly and it works. Cheers! |
Hello, thank you for your interest and testing! We tested our OptimalSteps on your prompt doesn't have an exciting result. But it is at least comparable with the no-OptimalSteps 10 steps, so you can always have a try before adding more resources. Thank you again for providing this valuable prompt for us, this is helpful for our further research. |
Any idea if this work with HiDream-I1 ? |
@Foul-Tarnished I tested OptimalSteps with LTXV 0.9.6 Distilled yesterday - the WAN preset works great, even down to 4-5 steps sometimes. |
Hello, this is the implementation of the method OptimalSteps, which can accelerate diffusion model sampling significantly, almost without quality loss. The added node "OptimalStepsScheduler" supports the acceleration for text-to-image model FLUX and text-to-video model Wan. Here, we give a demo result of FLUX model with 10 sampling steps:

Here are the example workflows with OptimalSteps for FLUX-workflow and Wan-workflow.
For more information and results, please visit our repo and paper.