Unverified Commit a8b0f42c authored by Steven Liu's avatar Steven Liu Committed by GitHub
Browse files

[docs] Fix link to loader method (#3680)

fix link to load_lora_weights
parent 41ae6708
...@@ -127,7 +127,7 @@ image = pipeline(prompt, num_inference_steps=50).images[0] ...@@ -127,7 +127,7 @@ image = pipeline(prompt, num_inference_steps=50).images[0]
## A1111 LoRA files ## A1111 LoRA files
[Automatic1111](https://github.com/AUTOMATIC1111/stable-diffusion-webui) (A1111) is a popular web UI for Stable Diffusion that supports model sharing platforms like [Civitai](https://civitai.com/). Models trained with the Low-Rank Adaptation (LoRA) technique are especially popular because they're fast to train and have a much smaller file size than a fully finetuned model. 🤗 Diffusers supports loading A1111 LoRA checkpoints with [`~LoraLoaderMixin.load_lora_weights`]: [Automatic1111](https://github.com/AUTOMATIC1111/stable-diffusion-webui) (A1111) is a popular web UI for Stable Diffusion that supports model sharing platforms like [Civitai](https://civitai.com/). Models trained with the Low-Rank Adaptation (LoRA) technique are especially popular because they're fast to train and have a much smaller file size than a fully finetuned model. 🤗 Diffusers supports loading A1111 LoRA checkpoints with [`~loaders.LoraLoaderMixin.load_lora_weights`]:
```py ```py
from diffusers import DiffusionPipeline, UniPCMultistepScheduler from diffusers import DiffusionPipeline, UniPCMultistepScheduler
...@@ -145,7 +145,7 @@ Download a LoRA checkpoint from Civitai; this example uses the [Howls Moving Cas ...@@ -145,7 +145,7 @@ Download a LoRA checkpoint from Civitai; this example uses the [Howls Moving Cas
!wget https://civitai.com/api/download/models/19998 -O howls_moving_castle.safetensors !wget https://civitai.com/api/download/models/19998 -O howls_moving_castle.safetensors
``` ```
Load the LoRA checkpoint into the pipeline with the [`~LoraLoaderMixin.load_lora_weights`] method: Load the LoRA checkpoint into the pipeline with the [`~loaders.LoraLoaderMixin.load_lora_weights`] method:
```py ```py
pipeline.load_lora_weights(".", weight_name="howls_moving_castle.safetensors") pipeline.load_lora_weights(".", weight_name="howls_moving_castle.safetensors")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment