mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-03-13 08:59:51 +00:00
@@ -116,8 +116,8 @@ 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():
|
||||
control_model = cldm.ControlNet(**controlnet_config)
|
||||
with using_forge_operations(dtype=unet_dtype):
|
||||
control_model = cldm.ControlNet(**controlnet_config).to(dtype=unet_dtype)
|
||||
|
||||
if pth:
|
||||
if 'difference' in controlnet_data:
|
||||
|
||||
Reference in New Issue
Block a user