Skip to content

Commit 361b62f

Browse files
stevhliupatrickvonplaten
authored andcommitted
[docs] Fix docstring (huggingface#3334)
fix docstring Co-authored-by: Patrick von Platen <[email protected]>
1 parent bd9cf76 commit 361b62f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diffusers/pipelines/pipeline_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def save_pretrained(
537537
"""
538538
Save all variables of the pipeline that can be saved and loaded as well as the pipelines configuration file to
539539
a directory. A pipeline variable can be saved and loaded if its class implements both a save and loading
540-
method. The pipeline can easily be re-loaded using the `[`~DiffusionPipeline.from_pretrained`]` class method.
540+
method. The pipeline can easily be re-loaded using the [`~DiffusionPipeline.from_pretrained`] class method.
541541
542542
Arguments:
543543
save_directory (`str` or `os.PathLike`):
@@ -1108,7 +1108,7 @@ def download(cls, pretrained_model_name, **kwargs) -> Union[str, os.PathLike]:
11081108
Download and cache a PyTorch diffusion pipeline from pre-trained pipeline weights.
11091109
11101110
Parameters:
1111-
pretrained_model_name (`str` or `os.PathLike`, *optional*):
1111+
pretrained_model_name (`str` or `os.PathLike`, *optional*):
11121112
Should be a string, the *repo id* of a pretrained pipeline hosted inside a model repo on
11131113
https://huggingface.co/ Valid repo ids have to be located under a user or organization name, like
11141114
`CompVis/ldm-text2im-large-256`.

0 commit comments

Comments
 (0)