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
All checkpoints have different usage which we detail below.
44
45
@@ -273,6 +274,46 @@ images = pipe(
273
274
images[0].save("flux-redux.png")
274
275
```
275
276
277
+
### Kontext
278
+
279
+
Flux Kontext is a model that allows in-context control of the image generation process, allowing for editing, refinement, relighting, style transfer, character customization, and more.
prompt ="Make Pikachu hold a sign that says 'Black Forest Labs is awesome', yarn art style, detailed, vibrant colors"
293
+
image = pipe(
294
+
image=image,
295
+
prompt=prompt,
296
+
guidance_scale=2.5,
297
+
generator=torch.Generator().manual_seed(42),
298
+
).images[0]
299
+
image.save("flux-kontext.png")
300
+
```
301
+
302
+
Flux Kontext comes with an integrity safety checker, which should be run after the image generation step. To run the safety checker, install the official repository from [black-forest-labs/flux](https://github.com/black-forest-labs/flux) and add the following code:
raiseValueError("Your image has been flagged. Choose another prompt/image or try again.")
315
+
```
316
+
276
317
## Combining Flux Turbo LoRAs with Flux Control, Fill, and Redux
277
318
278
319
We can combine Flux Turbo LoRAs with Flux Control and other pipelines like Fill and Redux to enable few-steps' inference. The example below shows how to do that for Flux Control LoRA for depth and turbo LoRA from [`ByteDance/Hyper-SD`](https://hf.co/ByteDance/Hyper-SD).
0 commit comments