1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

fix a bug on torch_dtype argument in from_single_file of ControlNetModel (#5528)

fix wrong parameter
This commit is contained in:
Yi-Xuan XU
2023-10-25 23:29:56 +08:00
committed by GitHub
parent 71ad02607d
commit dbce14da56

View File

@@ -3171,7 +3171,7 @@ class FromOriginalControlnetMixin:
)
if torch_dtype is not None:
controlnet.to(torch_dtype=torch_dtype)
controlnet.to(dtype=torch_dtype)
return controlnet