From 1d24377e32dab47e2d5803d429f98ec9a6d194ba Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Wed, 27 Sep 2023 14:06:30 -0700 Subject: [PATCH 1/2] fix --- docs/source/en/quicktour.md | 2 +- src/diffusers/pipelines/pipeline_flax_utils.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/source/en/quicktour.md b/docs/source/en/quicktour.md index 3cf6851e4683..95e2c4b20564 100644 --- a/docs/source/en/quicktour.md +++ b/docs/source/en/quicktour.md @@ -130,7 +130,7 @@ You can also use the pipeline locally. The only difference is you need to downlo Then load the saved weights into the pipeline: ```python ->>> pipeline = DiffusionPipeline.from_pretrained("./stable-diffusion-v1-5", use_safetensors=True) +>>> pipeline = DiffusionPipeline.from_pretrained("./stable-diffusion-v1-5", local_files_only=True, use_safetensors=True) ``` Now you can run the pipeline as you would in the section above. diff --git a/src/diffusers/pipelines/pipeline_flax_utils.py b/src/diffusers/pipelines/pipeline_flax_utils.py index a01f78da7ce8..2e8c7fb52b05 100644 --- a/src/diffusers/pipelines/pipeline_flax_utils.py +++ b/src/diffusers/pipelines/pipeline_flax_utils.py @@ -280,9 +280,7 @@ def from_pretrained(cls, pretrained_model_name_or_path: Optional[Union[str, os.P To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with - `huggingface-cli login`. You can also activate the special - [“offline-mode”](https://huggingface.co/diffusers/installation.html#offline-mode) to use this method in a - firewalled environment. + `huggingface-cli login`. From 74bb8d75ea01ab36c382357ee4e69c7d54386a21 Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Thu, 28 Sep 2023 09:52:06 -0700 Subject: [PATCH 2/2] feedback --- docs/source/en/quicktour.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/en/quicktour.md b/docs/source/en/quicktour.md index 95e2c4b20564..3cf6851e4683 100644 --- a/docs/source/en/quicktour.md +++ b/docs/source/en/quicktour.md @@ -130,7 +130,7 @@ You can also use the pipeline locally. The only difference is you need to downlo Then load the saved weights into the pipeline: ```python ->>> pipeline = DiffusionPipeline.from_pretrained("./stable-diffusion-v1-5", local_files_only=True, use_safetensors=True) +>>> pipeline = DiffusionPipeline.from_pretrained("./stable-diffusion-v1-5", use_safetensors=True) ``` Now you can run the pipeline as you would in the section above.