Make discard_model_sampling True by default

This commit is contained in:
Jedrzej Kosinski 2024-11-24 14:58:36 -06:00
parent 8b2c324cf6
commit 602c12b515
1 changed files with 1 additions and 1 deletions

View File

@ -534,7 +534,7 @@ def create_hook_model_as_lora(weights_model, weights_clip, strength_model: float
hook.need_weight_init = False
return hook_group
def get_patch_weights_from_model(model: 'ModelPatcher', discard_model_sampling=False):
def get_patch_weights_from_model(model: 'ModelPatcher', discard_model_sampling=True):
if model is None:
return None
patches_model: dict[str, torch.Tensor] = model.model.state_dict()