You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ighoshsubho thanks for picking this up, go ahead when you have time. Isn't that issue resolved though? We have the inpainting and img2img pipelines merged by now.
@ighoshsubho thanks for picking this up, go ahead when you have time. Isn't that issue resolved though? We have the inpainting and img2img pipelines merged by now.
@hlky thanks a lot for your findings, I haven't had the time to investigate the samplers + schedulers in the webuis so I'm really grateful you did this.
@rollingcookies does this resolve your issue then? you just need to change the timestep_spacing in the scheduler to have the equivalent of SGM Uniform.
@asomoza If there's interest in supporting the other schedulers from the webuis I can look into existing equivalents and implement them as required. Also for this case the documentation could be updated.
yes, if the schedulers are good and popular we can add them but we need to evaluate them first.
For example there was an issue opened about the DPM++ 3M SDE Karras. I did some tests and some online digging and found it not that used (at least for images I consider popular or good) and it also wasn't very good in my testings, since no one else answered with a good use case, we didn't add it.
But we're very open to suggestions and opinions about other schedulers/samplers.
I agree about the documentation, ccing @stevhliu to know what would be the best way add it.
@asomoza Thank you so much for your efforts and help, I have forwarded this information to the folks at Invoke, hopefully this will be enough to add SGMUniform Scheduler to Invoke
Activity
ighoshsubho commentedon Sep 12, 2024
@asomoza can I pick up this after #9148 gets resolved if this is not picked till then
asomoza commentedon Sep 12, 2024
@ighoshsubho thanks for picking this up, go ahead when you have time. Isn't that issue resolved though? We have the inpainting and img2img pipelines merged by now.
I found that you probably mean #9402.
ighoshsubho commentedon Sep 12, 2024
my bad ya its #9402
hlky commentedon Sep 20, 2024
SGM Uniform implementation in WebUI, same in Forge
In
ByteDance/SDXL-Lightningdemo:Reproduction and comparison:
EulerDiscreteSchedulerwithtrailingtimesteps:WebUI euler with sgm_uniform:
The tiny differences are likely due to
numpyin Diffusers vstorch.tl;dr SGM Uniform is already supported in Diffusers with
timestep_spacing="trailing".asomoza commentedon Sep 20, 2024
@hlky thanks a lot for your findings, I haven't had the time to investigate the samplers + schedulers in the webuis so I'm really grateful you did this.
@rollingcookies does this resolve your issue then? you just need to change the
timestep_spacingin the scheduler to have the equivalent ofSGM Uniform.cc: @yiyixuxu for awareness.
hlky commentedon Sep 20, 2024
@asomoza If there's interest in supporting the other schedulers from the webuis I can look into existing equivalents and implement them as required. Also for this case the documentation could be updated.
asomoza commentedon Sep 20, 2024
yes, if the schedulers are good and popular we can add them but we need to evaluate them first.
For example there was an issue opened about the
DPM++ 3M SDE Karras. I did some tests and some online digging and found it not that used (at least for images I consider popular or good) and it also wasn't very good in my testings, since no one else answered with a good use case, we didn't add it.But we're very open to suggestions and opinions about other schedulers/samplers.
I agree about the documentation, ccing @stevhliu to know what would be the best way add it.
hlky commentedon Sep 20, 2024
I've done a preliminary popularity check with one of my datasets where the
"Schedule type"field is present in metadata so images from A1111/Forge:{ "Karras": 329096, "Automatic": 148458, "Simple": 56595, "Exponential": 51861, "SGM Uniform": 21927, "Beta": 8815, "Polyexponential": 6807, "Align Your Steps": 5119, "Uniform": 4342, "Normal": 2772, "DDIM": 1583, "KL Optimal": 1500, "Turbo": 465, "Align Your Steps 32": 429, "Align Your Steps GITS": 169, "DPM++ 3M SDE Karras": 88, }Total:
640026"Automatic"here means the default.I'll check other datasets as the metadata in that one is limited although I imagine the distribution will be roughly the same.
rollingcookies commentedon Sep 21, 2024
@asomoza Thank you so much for your efforts and help, I have forwarded this information to the folks at Invoke, hopefully this will be enough to add SGMUniform Scheduler to Invoke
asomoza commentedon Sep 21, 2024
@rollingcookies no problem but this was all thanks to @hlky Wish you luck, I don't see why they wouldn't add it since it's a really small change.
asomoza commentedon Sep 21, 2024
@hlky about these:
Any of these could work if we don't have them right now, I've seen good generations with these.
stevhliu commentedon Sep 23, 2024
Thanks for thinking about the docs! 🤗 Would you like to open a PR to add SGMUniform to the table?