Skip to content

Commit 49ad61c

Browse files
[Docs] add note on local directory path. (#3397)
add note on local directory path. Co-authored-by: Patrick von Platen <[email protected]>
1 parent 4bbc51d commit 49ad61c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/source/en/training/lora.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ pipe = StableDiffusionPipeline.from_pretrained(base_model_id, torch_dtype=torch.
146146

147147
</Tip>
148148

149+
149150
## DreamBooth
150151

151152
[DreamBooth](https://arxiv.org/abs/2208.12242) is a finetuning technique for personalizing a text-to-image model like Stable Diffusion to generate photorealistic images of a subject in different contexts, given a few images of the subject. However, DreamBooth is very sensitive to hyperparameters and it is easy to overfit. Some important hyperparameters to consider include those that affect the training time (learning rate, number of training steps), and inference time (number of steps, scheduler type).
@@ -268,4 +269,7 @@ Note that the use of [`~diffusers.loaders.LoraLoaderMixin.load_lora_weights`] is
268269
pipe.load_lora_weights(lora_model_path)
269270
```
270271

271-
* LoRA parameters that have separate identifiers for the UNet and the text encoder such as: [`"sayakpaul/dreambooth"`](https://huggingface.co/sayakpaul/dreambooth).
272+
* LoRA parameters that have separate identifiers for the UNet and the text encoder such as: [`"sayakpaul/dreambooth"`](https://huggingface.co/sayakpaul/dreambooth).
273+
274+
**Note** that it is possible to provide a local directory path to [`~diffusers.loaders.LoraLoaderMixin.load_lora_weights`] as well as [`~diffusers.loaders.UNet2DConditionLoadersMixin.load_attn_procs`]. To know about the supported inputs,
275+
refer to the respective docstrings.

0 commit comments

Comments
 (0)