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 SD2 loading #16078

Merged
merged 1 commit into from
Jul 6, 2024
Merged

Fix SD2 loading #16078

merged 1 commit into from
Jul 6, 2024

Conversation

huchenlei
Copy link
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
Contributor

Yes, it works, thank you!

@light-and-ray

This comment was marked as outdated.

@light-and-ray
Copy link
Contributor

I think I've fixed in #16079

@light-and-ray
Copy link
Contributor

LDSR has the same problem

@AUTOMATIC1111 AUTOMATIC1111 merged commit 4cc3add into AUTOMATIC1111:dev Jul 6, 2024
3 checks passed
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
@lawchingman lawchingman mentioned this pull request Oct 5, 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