Skip to content

Fix SD2 loading#16078

Merged
AUTOMATIC1111 merged 1 commit intoAUTOMATIC1111:devfrom
huchenlei:fix_sd2
Jul 6, 2024
Merged

Fix SD2 loading#16078
AUTOMATIC1111 merged 1 commit intoAUTOMATIC1111:devfrom
huchenlei:fix_sd2

Conversation

@huchenlei
Copy link
Copy Markdown
Contributor

Description

Closes #16031

The bug was originally introduced in #15820

#15820 tries to make sure unet input and timesteps emb are all in correct dtype. However, is_using_v_parameterization_for_sd2 only sets unet's weight to dtype without modifying the config devices.dtype_unet, which causes dtype mismatch.

Checklist:

@light-and-ray
Copy link
Copy Markdown
Contributor

Yes, it works, thank you!

@light-and-ray

This comment was marked as outdated.

@light-and-ray
Copy link
Copy Markdown
Contributor

I think I've fixed in #16079

@light-and-ray
Copy link
Copy Markdown
Contributor

LDSR has the same problem

@AUTOMATIC1111 AUTOMATIC1111 merged commit 4cc3add into AUTOMATIC1111:dev Jul 6, 2024
AUTOMATIC1111 added a commit that referenced this pull request Jul 6, 2024
This reverts commit 4cc3add, reversing
changes made to 50514ce.
ruchej pushed a commit to ruchej/stable-diffusion-webui that referenced this pull request Sep 30, 2024
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.

3 participants