wanghaofan commited on
Commit
e1679d2
1 Parent(s): 8eea24e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +38 -6
README.md CHANGED
@@ -1,9 +1,12 @@
1
  ---
2
  tags:
3
  - text-to-image
 
4
  - lora
5
  - diffusers
6
- - template:diffusion-lora
 
 
7
  widget:
8
  - text: >-
9
  A young man, gold hair, white T-shirt. The background is 4 real photos, and
@@ -30,18 +33,47 @@ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICE
30
  ---
31
  # FLUX.1-dev-LoRA-One-Click-Creative-Template
32
 
 
 
 
 
 
 
 
33
  <Gallery />
34
 
35
 
36
  ## Trigger words
37
 
38
- You should use `The background is 4 real photos` to trigger the image generation.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
- You should use `and in the middle is a cartoon picture summarizing the real photos` to trigger the image generation.
41
 
 
42
 
43
- ## Download model
44
 
45
- Weights for this model are available in Safetensors format.
 
46
 
47
- [Download](/Shakker-Labs/FLUX.1-dev-LoRA-One-Click-Creative-Template/tree/main) them in the Files & versions tab.
 
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
 
33
  ---
34
  # FLUX.1-dev-LoRA-One-Click-Creative-Template
35
 
36
+ This is a LoRA trained on FLUX.1-dev by [Nvwa_model_studio](https://www.shakker.ai/userpage/cd65d71ff6a74bbfaaeba0b898dbf856/publish) for creative photos.
37
+
38
+ <div class="container">
39
+ <img src="./poster.jpeg" width="1024"/>
40
+ </div>
41
+
42
+ ## Showcases
43
  <Gallery />
44
 
45
 
46
  ## Trigger words
47
 
48
+ 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.
49
+
50
+
51
+ ## Inference
52
+
53
+ ```python
54
+ import torch
55
+ from diffusers import FluxPipeline
56
+
57
+ pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
58
+ pipe.load_lora_weights("Shakker-Labs/FLUX.1-dev-LoRA-One-Click-Creative-Template", weight_name="FLUX-dev-lora-One-Click-Creative-Template.safetensors")
59
+ pipe.fuse_lora(lora_scale=1.0)
60
+ pipe.to("cuda")
61
+
62
+ 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."
63
+
64
+ image = pipe(prompt,
65
+ num_inference_steps=24,
66
+ guidance_scale=3.5,
67
+ width=960, height=1280,
68
+ ).images[0]
69
+ image.save(f"example.png")
70
+ ```
71
 
72
+ ## Online Inference
73
 
74
+ 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.
75
 
 
76
 
77
+ ## Acknowledgements
78
+ This model is trained by our copyrighted users [Nvwa_model_studio](https://www.shakker.ai/userpage/cd65d71ff6a74bbfaaeba0b898dbf856/publish). We release this model under permissions.
79