-
Notifications
You must be signed in to change notification settings - Fork 21
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 #36
Comments
Just loaded the models in Model Toolkit extension |
It look like model.diffusion_model, first_stage_model, cond_stage_model.transformer.text_model are only modified in weight_matching.py
Replace |
I have an other question about weight_matching function. |
Don't thetas need to be copy, aren't they weight matching with the model original weight?
|
on line: 55
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}
and line: 59
if "model" in key and key not in theta_0: theta_0[key] = theta_1[key]
if "model"
is to generic what key tree need to modified?on line 55 I have add skip list for myself excluding model_ema:
skips = ['model_ema.decay', 'model_ema.num_updates']
and key not in skips
The text was updated successfully, but these errors were encountered: