mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-22 15:29:25 +00:00
fix cast
This commit is contained in:
@@ -150,7 +150,7 @@ class ForgeOperationsWithManualCast(ForgeOperations):
|
||||
|
||||
|
||||
@contextlib.contextmanager
|
||||
def using_forge_operations(parameters_manual_cast=False, operations=None):
|
||||
def using_forge_operations(parameters_manual_cast=True, operations=None):
|
||||
|
||||
if operations is None:
|
||||
operations = ForgeOperations
|
||||
|
||||
@@ -116,7 +116,7 @@ class ControlNetPatcher(ControlModelPatcher):
|
||||
controlnet_config.pop("out_channels")
|
||||
controlnet_config["hint_channels"] = controlnet_data["{}input_hint_block.0.weight".format(prefix)].shape[1]
|
||||
|
||||
with using_forge_operations(parameters_manual_cast=manual_cast_dtype is not None):
|
||||
with using_forge_operations():
|
||||
control_model = cldm.ControlNet(**controlnet_config)
|
||||
|
||||
if pth:
|
||||
|
||||
Reference in New Issue
Block a user