Rewrite README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,86 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- text-to-image
|
| 4 |
+
- stable-diffusion
|
| 5 |
+
- lora
|
| 6 |
+
- diffusers
|
| 7 |
+
- image-generation
|
| 8 |
+
- flux
|
| 9 |
+
- safetensors
|
| 10 |
+
widget:
|
| 11 |
+
- text: >-
|
| 12 |
+
A young man, gold hair, white T-shirt. The background is 4 real photos, and
|
| 13 |
+
in the middle is a cartoon picture summarizing the real photos.
|
| 14 |
+
output:
|
| 15 |
+
url: b4425607370dcaa80717519f157a64436dd92238dc60786639845551.jpg
|
| 16 |
+
- text: >-
|
| 17 |
+
A panda.The background is 4 real photos, and in the middle is a cartoon
|
| 18 |
+
picture summarizing the real photos.
|
| 19 |
+
output:
|
| 20 |
+
url: f2cc649985648e57b9b9b14ca7a8744ac8e50d75b3a334ed4df0f368.jpg
|
| 21 |
+
- text: >-
|
| 22 |
+
A young girl, red hair, blue dress. The background is 4 real photos, and in
|
| 23 |
+
the middle is a cartoon picture summarizing the real photos.
|
| 24 |
+
output:
|
| 25 |
+
url: 9104a1e9c1debdb1188c06a5e07bf4a084f0d8005e082f01f8de7c19.jpg
|
| 26 |
+
base_model: black-forest-labs/FLUX.1-dev
|
| 27 |
+
instance_prompt: >-
|
| 28 |
+
The background is 4 real photos, and in the middle is a cartoon picture
|
| 29 |
+
summarizing the real photos
|
| 30 |
+
license: other
|
| 31 |
+
license_name: flux-1-dev-non-commercial-license
|
| 32 |
+
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
| 33 |
+
language:
|
| 34 |
+
- en
|
| 35 |
+
library_name: diffusers
|
| 36 |
+
---
|
| 37 |
+
# FLUX.1-dev-LoRA-One-Click-Creative-Template
|
| 38 |
+
|
| 39 |
+
This is a LoRA trained on FLUX.1-dev by [Nvwa_model_studio](https://www.shakker.ai/userpage/cd65d71ff6a74bbfaaeba0b898dbf856/publish) for creative photos.
|
| 40 |
+
|
| 41 |
+
<div class="container">
|
| 42 |
+
<img src="./poster.jpeg" width="1024"/>
|
| 43 |
+
</div>
|
| 44 |
+
|
| 45 |
+
## Showcases
|
| 46 |
+
<Gallery />
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
## Trigger words
|
| 50 |
+
|
| 51 |
+
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.
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
## Inference
|
| 55 |
+
|
| 56 |
+
```python
|
| 57 |
+
import torch
|
| 58 |
+
from diffusers import FluxPipeline
|
| 59 |
+
|
| 60 |
+
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
|
| 61 |
+
pipe.load_lora_weights("Shakker-Labs/FLUX.1-dev-LoRA-One-Click-Creative-Template", weight_name="FLUX-dev-lora-One-Click-Creative-Template.safetensors")
|
| 62 |
+
pipe.fuse_lora(lora_scale=1.0)
|
| 63 |
+
pipe.to("cuda")
|
| 64 |
+
|
| 65 |
+
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."
|
| 66 |
+
|
| 67 |
+
image = pipe(prompt,
|
| 68 |
+
num_inference_steps=24,
|
| 69 |
+
guidance_scale=3.5,
|
| 70 |
+
width=960, height=1280,
|
| 71 |
+
).images[0]
|
| 72 |
+
image.save(f"example.png")
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
## Online Inference
|
| 76 |
+
|
| 77 |
+
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.
|
| 78 |
+
|
| 79 |
+
<div class="container">
|
| 80 |
+
<img src="./workflow.png" width="1024"/>
|
| 81 |
+
</div>
|
| 82 |
+
|
| 83 |
+
We also provide an [online ComfyUI workflow](https://www.shakker.ai/modelinfo/c81474e2a6fc40cb9c26a7f4a3b7d691/Generate-interesting-sticker-avatars-with-one-click?from=search) (Click Run Model) that accepts user-uploaded images to generate images
|
| 84 |
+
|
| 85 |
+
## Acknowledgements
|
| 86 |
+
This model is trained by our copyrighted users [Nvwa_model_studio](https://www.shakker.ai/userpage/cd65d71ff6a74bbfaaeba0b898dbf856/publish). We release this model under permissions.
|