Skip to content

Commit 4b1ff44

Browse files
committed
lcm-lora
1 parent 570b7fe commit 4b1ff44

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

docs/source/en/using-diffusers/ip_adapter.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,16 @@ pipeline.load_ip_adapter("h94/IP-Adapter", subfolder="models", weight_name="ip-a
383383
pipeline.load_lora_weights(lcm_lora_id)
384384
pipeline.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
385385
pipeline.enable_model_cpu_offload()
386+
```
387+
388+
Try using with a lower IP-Adapter scale to condition image generation more on the herge_style checkpoint, and remember to use the special token `herge_style` in your prompt to trigger and apply the style.
389+
390+
```py
391+
pipeline.set_ip_adapter_scale(0.4)
392+
393+
prompt = "herge_style woman in armor, best quality, high quality"
394+
generator = torch.Generator(device="cpu").manual_seed(0)
386395

387-
prompt = "best quality, high quality"
388396
ip_adapter_image = load_image("https://user-images.githubusercontent.com/24734142/266492875-2d50d223-8475-44f0-a7c6-08b51cb53572.png")
389397
image = pipeline(
390398
prompt=prompt,
@@ -396,7 +404,7 @@ image
396404
```
397405

398406
<div class="flex justify-center">
399-
    <img src="" />
407+
    <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/ip_adapter_herge.png" />
400408
<figcaption class="mt-2 text-center text-sm text-gray-500">generated image</figcaption>
401409
</div>
402410

0 commit comments

Comments
 (0)