Skip to content

0.15.1 version changes the weight shapes of unet !!! #3167

Description

@CharlieLzy

Describe the bug

There is a horrible bug that the weight shapes of unet are changed after the version update from 0.13.1 to 0.15.1. I found it when I tried to use controlnet pipeline, the 0.13.1 has not supported controlnet yet, so I updated the diffusers. After that I tried on controlnet pipeline, and I found the shape of injected lora weights is incompatible with the unet. Then I printed the shapes of all weights in old unet checkpoint and newly converted one, as expected, different. I suspected it was controlnet‘s problem at beginning, but confirmed the bug came from a version changing after runing the previous codes. I changed the version back to 0.13.1, and everything became fine immediately. I hope this problem could be taken seriously and solved soon, cause controlnet is important, so does lora.

Reproduction

image = pipe(prompt, negative_prompt=negative_prompt, num_inference_steps=num_inference_steps, guidance_scale=7.5).images[0]

Logs

No response

System Info

diffusers 0.13.1, 0.15.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleIssues that haven't received updates

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions