ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Implement: Align Your Steps: Optimizing Sampling Schedules in Diffusion Models

Open joe-aivatarz opened this issue 1 year ago • 10 comments

Align Your Steps: Optimizing Sampling Schedules in Diffusion Models is a general and principled approach to optimizing the sampling schedules of DMs for high-quality outputs. This work is presented by Nvidia labs in this paper: https://arxiv.org/abs/2404.14507

and the project page is here https://research.nvidia.com/labs/toronto-ai/AlignYourSteps/

the page propose a very small change that have big impact on the inference quality

joe-aivatarz avatar Apr 24 '24 02:04 joe-aivatarz

already implemented here : https://github.com/comfyanonymous/ComfyUI/commit/644a3ae58d426ffbbc02ef4104034c98e8fc6513

atxoxx avatar Apr 24 '24 02:04 atxoxx

Can anyone explain how to use this node?

It has a SIGMAS output which I'm not sure where it should link to.

giteeeeee avatar Apr 25 '24 06:04 giteeeeee

Can anyone explain how to use this node?

It has a SIGMAS output which I'm not sure where it should link to.

image

ltdrdata avatar Apr 25 '24 07:04 ltdrdata

So can I use SamplerCustom node for denoise img2img? I cant find how to handle denoise step...

ecpknymt avatar Apr 25 '24 10:04 ecpknymt

So can I use SamplerCustom node for denoise img2img? I cant find how to handle denoise step...

Sure... That is similar to KSamplerAdvanced. You need to manipulate sigmas to mimic denoise.

ltdrdata avatar Apr 25 '24 11:04 ltdrdata

Maybe this should be implemented in system's scheduler list, then lots workflow should benefit from it.

frankyifei avatar Apr 25 '24 23:04 frankyifei

Can anyone explain how to use this node? It has a SIGMAS output which I'm not sure where it should link to.

image

升级comfyui到最新版本直接就可以用这个节点。或者双击左键搜索“AlignYourStepsScheduler”,这个节点就出现了。

ErvinA-wx avatar Apr 29 '24 09:04 ErvinA-wx

@joe-aivatarz why don'y you close the issue when it was already implemented?

quixot1c avatar May 12 '24 08:05 quixot1c

This really is the most pain in the butt way to use AYS.

Hey @comfyanonymous, can you finally add AYS to the other schedulers so we can stop jumping through hoops to use it? You're already adding new samplers & schedulers we never had before.

Koitenshin avatar Jun 21 '24 07:06 Koitenshin