File size: 2,002 Bytes
95498c8
 
 
d5646d8
95498c8
 
d5646d8
 
 
95498c8
d5646d8
 
 
 
 
 
 
 
 
 
 
95498c8
 
 
 
 
 
 
 
 
d5646d8
95498c8
d5646d8
 
95498c8
 
 
 
 
 
d5646d8
 
 
 
 
 
 
 
 
 
 
 
 
 
95498c8
d5646d8
 
 
 
 
 
 
 
95498c8
d5646d8
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
tags:
- text-to-image
- stable-diffusion
- lora
- diffusers
- image-generation
- flux
- safetensors
widget:
- text: >-
    change to illustration style
  output:
    url: images/example1.png
- text: >-
    change to illustration style
  output:
    url: images/example2.png
- text: change to illustration style
  output:
    url: images/example3.png
base_model: black-forest-labs/FLUX.1-Kontext-dev
instance_prompt: illustration style
license: other
license_name: flux-1-dev-non-commercial-license
license_link: >-
  https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/blob/main/LICENSE.md
---
# FLUX.1-Kontext-dev-LoRA-Illustration-Style

This is an illustration style style LoRA trained on FLUX.1-Kontext-dev by [木木木亘](https://www.liblib.art/userpage/8d5ade1f022c453089e473c7e39dbb35/publish).

## Showcases
<Gallery />

## Trigger words

You should use `illustration style` to trigger the image generation.


## Inference

```python
import torch
from diffusers import FluxKontextPipeline
from diffusers.utils import load_image

pipe = FluxKontextPipeline.from_pretrained("black-forest-labs/FLUX.1-Kontext-dev", torch_dtype=torch.bfloat16)
pipe.load_lora_weights("Shakker-Labs/FLUX.1-Kontext-dev-LoRA-Illustration-Style", weight_name="FLUX-kontext-lora-illustration-style.safetensors")
pipe.fuse_lora(lora_scale=1.0)
pipe.to("cuda")

input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
prompt = "change to illustration style"

image = pipe(
    image=input_image,
    prompt=prompt, 
    num_inference_steps=24, 
    guidance_scale=2.5,
).images[0]
image.save(f"example.png")
```

## Acknowledgements
This model is trained by our copyrighted users [木木木亘](https://www.liblib.art/userpage/8d5ade1f022c453089e473c7e39dbb35/publish). We release this model under permissions. The model follows [flux-1-dev-non-commercial-license](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md).