mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-13 12:27:10 +08:00
Make discard_model_sampling True by default
This commit is contained in:
parent
8b2c324cf6
commit
602c12b515
@ -534,7 +534,7 @@ def create_hook_model_as_lora(weights_model, weights_clip, strength_model: float
|
|||||||
hook.need_weight_init = False
|
hook.need_weight_init = False
|
||||||
return hook_group
|
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:
|
if model is None:
|
||||||
return None
|
return None
|
||||||
patches_model: dict[str, torch.Tensor] = model.model.state_dict()
|
patches_model: dict[str, torch.Tensor] = model.model.state_dict()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user