Skip to content

Commit 571bc1e

Browse files
[docs] Fix docstring (#3334)
fix docstring Co-authored-by: Patrick von Platen <[email protected]>
1 parent f381402 commit 571bc1e

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
@@ -531,7 +531,7 @@ def save_pretrained(
531531
"""
532532
Save all variables of the pipeline that can be saved and loaded as well as the pipelines configuration file to
533533
a directory. A pipeline variable can be saved and loaded if its class implements both a save and loading
534-
method. The pipeline can easily be re-loaded using the `[`~DiffusionPipeline.from_pretrained`]` class method.
534+
method. The pipeline can easily be re-loaded using the [`~DiffusionPipeline.from_pretrained`] class method.
535535
536536
Arguments:
537537
save_directory (`str` or `os.PathLike`):
@@ -1087,7 +1087,7 @@ def download(cls, pretrained_model_name, **kwargs) -> Union[str, os.PathLike]:
10871087
Download and cache a PyTorch diffusion pipeline from pre-trained pipeline weights.
10881088
10891089
Parameters:
1090-
pretrained_model_name (`str` or `os.PathLike`, *optional*):
1090+
pretrained_model_name (`str` or `os.PathLike`, *optional*):
10911091
Should be a string, the *repo id* of a pretrained pipeline hosted inside a model repo on
10921092
https://huggingface.co/ Valid repo ids have to be located under a user or organization name, like
10931093
`CompVis/ldm-text2im-large-256`.

0 commit comments

Comments
 (0)