fix bug for latest model merge RAM improvement

This commit is contained in:
AUTOMATIC 2022-10-17 08:28:18 +03:00
parent 58f3ef7733
commit 5c94aaf290

View File

@ -201,6 +201,7 @@ def run_modelmerger(primary_model_name, secondary_model_name, teritary_model_nam
teritary_model = torch.load(teritary_model_info.filename, map_location='cpu')
theta_2 = sd_models.get_state_dict_from_checkpoint(teritary_model)
else:
teritary_model = None
theta_2 = None
theta_funcs = {