We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
typing
1 parent 4890e9b commit 7ab2011Copy full SHA for 7ab2011
1 file changed
src/diffusers/models/auto_model.py
@@ -36,9 +36,7 @@ def __init__(self, *args, **kwargs):
36
)
37
38
@classmethod
39
- def from_config(
40
- cls, pretrained_model_name_or_path_or_dict: Optional[Union[str, os.PathLike, dict]] = None, **kwargs
41
- ):
+ def from_config(cls, pretrained_model_name_or_path_or_dict: str | os.PathLike | dict | None = None, **kwargs):
42
r"""
43
Instantiate a model from a config dictionary or a pretrained model configuration file with random weights (no
44
pretrained weights are loaded).
0 commit comments