File size: 2,779 Bytes
9ea2c4d
 
 
e1679d2
9ea2c4d
 
e1679d2
 
 
9ea2c4d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e1679d2
 
 
 
 
 
 
9ea2c4d
 
 
 
 
e1679d2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9ea2c4d
e1679d2
9ea2c4d
e1679d2
9ea2c4d
 
e1679d2
 
9ea2c4d
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
68
69
70
71
72
73
74
75
76
77
78
79
80
---
tags:
- text-to-image
- stable-diffusion
- lora
- diffusers
- image-generation
- flux
- safetensors
widget:
- text: >-
    A young man, gold hair, white T-shirt. The background is 4 real photos, and
    in the middle is a cartoon picture summarizing the real photos.
  output:
    url: images/b4425607370dcaa80717519f157a64436dd92238dc60786639845551.jpg
- text: >-
    A panda.The background is 4 real photos, and in the middle is a cartoon
    picture summarizing the real photos.
  output:
    url: images/f2cc649985648e57b9b9b14ca7a8744ac8e50d75b3a334ed4df0f368.jpg
- text: >-
    A young girl, red hair, blue dress. The background is 4 real photos, and in
    the middle is a cartoon picture summarizing the real photos.
  output:
    url: images/9104a1e9c1debdb1188c06a5e07bf4a084f0d8005e082f01f8de7c19.jpg
base_model: black-forest-labs/FLUX.1-dev
instance_prompt: >-
  The background is 4 real photos, and in the middle is a cartoon picture
  summarizing the real photos
license: other
license_name: flux-1-dev-non-commercial-license
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
---
# FLUX.1-dev-LoRA-One-Click-Creative-Template

This is a LoRA trained on FLUX.1-dev by [Nvwa_model_studio](https://www.shakker.ai/userpage/cd65d71ff6a74bbfaaeba0b898dbf856/publish) for creative photos.

<div class="container">
  <img src="./poster.jpeg" width="1024"/>
</div>

## Showcases
<Gallery />


## Trigger words

You should use `The background is 4 real photos, and in the middle is a cartoon picture summarizing the real photos.` to trigger the image generation. The recommended scale is `1.0` in diffusers.


## Inference

```python
import torch
from diffusers import FluxPipeline

pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
pipe.load_lora_weights("Shakker-Labs/FLUX.1-dev-LoRA-One-Click-Creative-Template", weight_name="FLUX-dev-lora-One-Click-Creative-Template.safetensors")
pipe.fuse_lora(lora_scale=1.0)
pipe.to("cuda")

prompt = "A young girl, red hair, blue dress. The background is 4 real photos, and in the middle is a cartoon picture summarizing the real photos."

image = pipe(prompt, 
             num_inference_steps=24, 
             guidance_scale=3.5,
             width=960, height=1280,
            ).images[0]
image.save(f"example.png")
```

## Online Inference

You can also download this model at [Shakker AI](https://www.shakker.ai/modelinfo/16681dcf76e7447a83731c02eb4f4efe?from=personal_page), where we provide an online interface to generate images.


## Acknowledgements
This model is trained by our copyrighted users [Nvwa_model_studio](https://www.shakker.ai/userpage/cd65d71ff6a74bbfaaeba0b898dbf856/publish). We release this model under permissions.