-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Remove deadcode, add karras schedulers #3232
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
Conversation
Imports: `diffusers.models.cross_attention -> diffusers.models.attention_processor` Unions: `AttnProcessor -> AttentionProcessor` Classes: | Old name | New name| | --- | --- | | CrossAttention | Attention | | CrossAttnProcessor | AttnProcessor | | XFormersCrossAttnProcessor | XFormersAttnProcessor | | CrossAttnAddedKVProcessor | AttnAddedKVProcessor | | LoRACrossAttnProcessor | LoRAAttnProcessor | | LoRAXFormersCrossAttnProcessor | LoRAXFormersAttnProcessor | Same names in this class: `SlicedAttnProcessor, SlicedAttnAddedKVProcessor`
|
@StAlKeR7779 - Definitely appreciate the updates! I think we're going to need to make these changes to main. Unclear that there will be another 2.3 version released. |
|
thanks for the work! what happens when somebody wants to import parameters from an existing generation (using the old sampler names)? i couldn't tell from the diff whether the sampler names have changed at the python level or only in the UI |
My read on this is that this change has made sampler selection explicit, in the sense that there are now k_ and non-karras versions of samplers, where supported My estimation here is that old samplers which do not have a matching sampler in the current install would default to whatever sampler is currently selected (i.e., retrieving and setting the unsupported sampler would fail), but have not tested. |
|
I think this change is better off being based against Also why was the husky pre-commit config file removed? And this will most likely break the metadata retrieval for previous generations. We'll need to add manual checks to make those work. |
|
ya pls restore the husky file we need a map object of old sampler names to new. fortunately, moving forward into nodes, the metadata format will change a bit, so we will be able to determine if the metadata is using the old names or new. having the map will let us correctly recall the parameters. thanks! |
|
i'd like to take a look at how karras scheduling has been implemented, but there's 51 files here.. can you point me to where this change has been made in the inference code path? |
|
|
oh, it’s just a config flag on init! i thought it was gonna be way more complicated than that. great, thank you! |
|
@damian0815 - Did you have a chance to review? Wondering if this is pending or needs any further changes |
|
@hipsterusername I think it can be dropped now as this changes for 2.3 |
Note: it based on #3184
I deleted a lot of classes/functions without any references.
But not sure - maybe some of this intended to be use in future, so if some of deleted parts needed - say, i'l restore.
Also renamed schedulers, as it's some confussion in names now with karras, and with dpmpp_2, as there exists multistep and singlestep versions(singlestep version in diffusers not ancestral)
Tested all function in web, so maybe missed some errors in cli.