Skip to content

Commit dbce14d

Browse files
authored
fix a bug on torch_dtype argument in from_single_file of ControlNetModel (#5528)
fix wrong parameter
1 parent 71ad026 commit dbce14d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/loaders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3171,7 +3171,7 @@ def from_single_file(cls, pretrained_model_link_or_path, **kwargs):
31713171
)
31723172

31733173
if torch_dtype is not None:
3174-
controlnet.to(torch_dtype=torch_dtype)
3174+
controlnet.to(dtype=torch_dtype)
31753175

31763176
return controlnet
31773177

0 commit comments

Comments
 (0)