Skip to content

Commit cd5f8af

Browse files
committed
update kontext inpaint docs with hfoption
1 parent a8c9306 commit cd5f8af

File tree

1 file changed

+8
-1
lines changed
  • docs/source/en/api/pipelines

1 file changed

+8
-1
lines changed

docs/source/en/api/pipelines/flux.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,10 @@ if integrity_checker.test_image(image_):
317317
```
318318

319319
### Kontext Inpainting
320-
[`FluxKontextInpaintPipeline`] enables image modification within a fixed mask region. It currently supports both text-based conditioning and image-reference conditioning.
320+
`FluxKontextInpaintPipeline` enables image modification within a fixed mask region. It currently supports both text-based conditioning and image-reference conditioning.
321+
<hfoptions id="kontext-inpaint">
322+
<hfoption id="text-only">
323+
321324
#### Inpainting with text only
322325

323326
```python
@@ -344,6 +347,8 @@ pipe.to("cuda")
344347
image = pipe(prompt=prompt, image=source, mask_image=mask, strength=1.0).images[0]
345348
image.save("kontext_inpainting_normal.png")
346349
```
350+
</hfoption>
351+
<hfoption id="image conditioning">
347352

348353
#### Inpainting with image conditioning
349354
```python
@@ -371,6 +376,8 @@ image = pipe(
371376
).images[0]
372377
image.save("kontext_inpainting_ref.png")
373378
```
379+
</hfoption>
380+
</hfoptions>
374381

375382
## Combining Flux Turbo LoRAs with Flux Control, Fill, and Redux
376383

0 commit comments

Comments
 (0)