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

KeyError: 'model_ema.diffusion_modeltime_embed0weight' #19

Open
NaughtDZ opened this issue Nov 30, 2022 · 3 comments
Open

KeyError: 'model_ema.diffusion_modeltime_embed0weight' #19

NaughtDZ opened this issue Nov 30, 2022 · 3 comments

Comments

@NaughtDZ
Copy link

Using half precision

---------------------
     ITERATION 1
---------------------

new alpha = 0.05

Traceback (most recent call last):
File "I:\Dreambooth-Stable-Diffusion\Merge-Stable-Diffusion-models-without-distortion\SD_rebasin_merge.py", line 55, in
theta_0 = {key: (1 - (new_alpha)) * theta_0[key] + (new_alpha) * value for key, value in theta_1.items() if "model" in key and key in theta_1}
File "I:\Dreambooth-Stable-Diffusion\Merge-Stable-Diffusion-models-without-distortion\SD_rebasin_merge.py", line 55, in
theta_0 = {key: (1 - (new_alpha)) * theta_0[key] + (new_alpha) * value for key, value in theta_1.items() if "model" in key and key in theta_1}
KeyError: 'model_ema.diffusion_modeltime_embed0weight'

@vaguenebula
Copy link

what models are you trying to merge?

@NaughtDZ
Copy link
Author

NaughtDZ commented Dec 1, 2022

what models are you trying to merge?

Anything-V3.0 and wd-v1-3-float16

@wilhelmw201
Copy link

maybe you can try removing the ema first with a tool like this one https://github.com/Akegarasu/sd-model-converter

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

No branches or pull requests

3 participants