Skip to content

Commit

Permalink
fix a bug on torch_dtype argument in from_single_file of ControlN…
Browse files Browse the repository at this point in the history
…etModel (huggingface#5528)

fix wrong parameter
  • Loading branch information
xuyxu authored Oct 25, 2023
1 parent 49615bf commit 37840e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -3171,7 +3171,7 @@ def from_single_file(cls, pretrained_model_link_or_path, **kwargs):
)

if torch_dtype is not None:
controlnet.to(torch_dtype=torch_dtype)
controlnet.to(dtype=torch_dtype)

return controlnet

Expand Down

0 comments on commit 37840e8

Please sign in to comment.