Skip to content

[docs] Fix docstring #3334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/diffusers/pipelines/pipeline_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def save_pretrained(
"""
Save all variables of the pipeline that can be saved and loaded as well as the pipelines configuration file to
a directory. A pipeline variable can be saved and loaded if its class implements both a save and loading
method. The pipeline can easily be re-loaded using the `[`~DiffusionPipeline.from_pretrained`]` class method.
method. The pipeline can easily be re-loaded using the [`~DiffusionPipeline.from_pretrained`] class method.

Arguments:
save_directory (`str` or `os.PathLike`):
Expand Down Expand Up @@ -1087,7 +1087,7 @@ def download(cls, pretrained_model_name, **kwargs) -> Union[str, os.PathLike]:
Download and cache a PyTorch diffusion pipeline from pre-trained pipeline weights.

Parameters:
pretrained_model_name (`str` or `os.PathLike`, *optional*):
pretrained_model_name (`str` or `os.PathLike`, *optional*):
Should be a string, the *repo id* of a pretrained pipeline hosted inside a model repo on
https://huggingface.co/ Valid repo ids have to be located under a user or organization name, like
`CompVis/ldm-text2im-large-256`.
Expand Down