Skip to content
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

Fix loading more recent VaeKl checkpoints #305

Merged
merged 1 commit into from
Dec 13, 2023
Merged

Conversation

jonatanklosko
Copy link
Member

huggingface/diffusers#3387 changed layer names in the VaeKl implementation, so in order to load newer and older checkpoints we need to check for both layer names. In particular this is relevant to fp16 checkpoints for SDv1-4.

I changed the params mapping to support multiple layer names to try like this:

%{
  ...,
  "attentions.{m}.query" => ["attentions.{m}.to_q", "attentions.{m}.query"],
  ...
}

@jonatanklosko jonatanklosko merged commit fbb94d9 into main Dec 13, 2023
2 checks passed
@jonatanklosko jonatanklosko deleted the jk-sd-params branch December 13, 2023 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant