InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[enhancement]: SGMUniform scheduler for Hyper loras needs support!

Open rollingcookies opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Contact Details

discord: @digital_groove

What should this feature add?

SGMUniform scheduler is needed to support Hyper loras! Please add support for this scheduler in Invoke interface.

I also opened a problem in the Huggingface Diffusers library where I described the problem to add support for SGMUniform scheduler in the library: https://github.com/huggingface/diffusers/issues/9397

And here they solved this problem and it looks like SGMUniform scheduler is now present in the Diffusers library (please check if everything is ok): https://github.com/huggingface/diffusers/issues/9416

Alternatives

No response

Additional Content

No response

rollingcookies avatar Sep 21 '24 12:09 rollingcookies

There's a crap way to get SGMUniform running on InvokeAI, as in diffusers it's simply a matter of changing the schedulers timestep spacing to trailing. So if your model is in diffusers format you can edit the schedulers config file. The value is then inherited by any scheduler that supports that setting.

Unfortunately this means editing the schedulers config file back and forth if not using Hyper all the time or creating a copy of the and editing the scheduler config of the copy so you're got a new model. You can use symlinks to save disk space. it would be nice if the dev's added an better way of doing it.

Note some models already have the config set correctly if they've been imported from diffusers versions e.g. RunDiffusion/Juggernaut-XL-v9 so it's worth checking first.

Vargol avatar Sep 25 '24 13:09 Vargol