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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user