File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1919from huggingface_hub import snapshot_download
2020from huggingface_hub .utils import LocalEntryNotFoundError , validate_hf_hub_args
2121from packaging import version
22+ from typing_extensions import Self
2223
2324from ..utils import deprecate , is_transformers_available , logging
2425from .single_file_utils import (
@@ -269,7 +270,7 @@ class FromSingleFileMixin:
269270
270271 @classmethod
271272 @validate_hf_hub_args
272- def from_single_file (cls , pretrained_model_link_or_path , ** kwargs ):
273+ def from_single_file (cls , pretrained_model_link_or_path , ** kwargs ) -> Self :
273274 r"""
274275 Instantiate a [`DiffusionPipeline`] from pretrained pipeline weights saved in the `.ckpt` or `.safetensors`
275276 format. The pipeline is set in evaluation mode (`model.eval()`) by default.
You can’t perform that action at this time.
0 commit comments