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

bugfix: skip cache incomplete model weights when initialize #13915

Closed

Conversation

zcc35357949
Copy link

@zcc35357949 zcc35357949 commented Nov 9, 2023

Description

during first webui initialization, sd model are loaded through LoadStateDictOnMeta helper. It will pop state_dict keys, so this incomplete state_dict should not cache to checkpoints_loaded.

fix #13914

Screenshots/videos:

Checklist:

@zcc35357949 zcc35357949 changed the base branch from master to dev November 9, 2023 08:17
@AUTOMATIC1111
Copy link
Owner

if you check the latest dev there's actually a different solution applied (cache a copy before calling load_state_dict)

@zcc35357949
Copy link
Author

if you check the latest dev there's actually a different solution applied (cache a copy before calling load_state_dict)

ok, Indeed this solution may be better. Thanks.

@zcc35357949 zcc35357949 closed this Nov 9, 2023
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.

[Bug]: use the same sd model and params but generate different images after switching models
2 participants