mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-21 23:00:59 -08:00
fix bug for latest model merge RAM improvement
This commit is contained in:
@@ -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')
|
teritary_model = torch.load(teritary_model_info.filename, map_location='cpu')
|
||||||
theta_2 = sd_models.get_state_dict_from_checkpoint(teritary_model)
|
theta_2 = sd_models.get_state_dict_from_checkpoint(teritary_model)
|
||||||
else:
|
else:
|
||||||
|
teritary_model = None
|
||||||
theta_2 = None
|
theta_2 = None
|
||||||
|
|
||||||
theta_funcs = {
|
theta_funcs = {
|
||||||
|
|||||||
Reference in New Issue
Block a user