You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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`]:
131
+
132
+
```py
133
+
from diffusers import DiffusionPipeline, UniPCMultistepScheduler
Download a LoRA checkpoint from Civitai; this example uses the [Howls Moving Castle,Interior/Scenery LoRA (Ghibli Stlye)](https://civitai.com/models/14605?modelVersionId=19998) checkpoint, but feel free to try out any LoRA checkpoint!
prompt ="masterpiece, illustration, ultra-detailed, cityscape, san francisco, golden gate bridge, california, bay area, in the snow, beautiful detailed starry sky"
158
+
negative_prompt ="lowres, cropped, worst quality, low quality, normal quality, artifacts, signature, watermark, username, blurry, more than one bridge, bad architecture"
159
+
160
+
images = pipeline(
161
+
prompt=prompt,
162
+
negative_prompt=negative_prompt,
163
+
width=512,
164
+
height=512,
165
+
num_inference_steps=25,
166
+
num_images_per_prompt=4,
167
+
generator=torch.manual_seed(0),
168
+
).images
169
+
```
170
+
171
+
Finally, create a helper function to display the images:
0 commit comments