wanghaofan commited on
Commit
959e8aa
·
verified ·
1 Parent(s): dda9d2a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +35 -5
README.md CHANGED
@@ -4,7 +4,9 @@ tags:
4
  - stable-diffusion
5
  - lora
6
  - diffusers
7
- - template:sd-lora
 
 
8
  widget:
9
  - text: >-
10
  Installation art style, A colorful inflatable bear is wrapped in a clear
@@ -31,16 +33,44 @@ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICE
31
  ---
32
  # FLUX.1-dev-LoRA-Garbage-Bag-Art
33
 
 
 
 
 
 
 
 
34
  <Gallery />
35
 
36
 
37
  ## Trigger words
38
 
39
- You should use `Inflatable plastic bag` to trigger the image generation.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
 
 
41
 
42
- ## Download model
43
 
44
- Weights for this model are available in Safetensors format.
45
 
46
- [Download](/Shakker-Labs/FLUX.1-dev-LoRA-Garbage-Bag-Art/tree/main) them in the Files & versions tab.
 
 
4
  - stable-diffusion
5
  - lora
6
  - diffusers
7
+ - image-generation
8
+ - flux
9
+ - safetensors
10
  widget:
11
  - text: >-
12
  Installation art style, A colorful inflatable bear is wrapped in a clear
 
33
  ---
34
  # FLUX.1-dev-LoRA-Garbage-Bag-Art
35
 
36
+ This is a LoRA (Garbage-Bag-Art) trained on FLUX.1-dev by [Hongke](https://www.shakker.ai/userpage/b1f1d4128cec474c8085576e6c9fb761/publish) on [Shakker AI](https://www.shakker.ai/modelinfo/0210878e637047c6bad4db62ebfcefe8?from=feed).
37
+
38
+ <div class="container">
39
+ <img src="./poster.jpg" width="1024"/>
40
+ </div>
41
+
42
+ ## Showcases
43
  <Gallery />
44
 
45
 
46
  ## Trigger words
47
 
48
+ You should use `Inflatable plastic bag` as trigger words. The recommended scale is `1.0` in diffusers.
49
+
50
+ ## Inference
51
+
52
+ ```python
53
+ import torch
54
+ from diffusers import FluxPipeline
55
+
56
+ pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
57
+ pipe.load_lora_weights("Shakker-Labs/FLUX.1-dev-LoRA-Garbage-Bag-Art", weight_name="FLUX-dev-lora-Garbage-Bag-Art.safetensors")
58
+ pipe.fuse_lora(lora_scale=1.1)
59
+ pipe.to("cuda")
60
+
61
+ prompt = "Installation art style, A colorful inflatable bear is wrapped in a clear plastic bag against a white background,dolls made from inflatable garbage bags,colorful,huge toys,on a white background,artist's exhibition,environmental art,"
62
+
63
+ image = pipe(prompt,
64
+ num_inference_steps=24,
65
+ guidance_scale=3.5,
66
+ ).images[0]
67
+ image.save(f"example.png")
68
+ ```
69
 
70
+ ## Online Inference
71
 
72
+ You can also download this model at [Shakker AI](https://www.shakker.ai/modelinfo/ae11c92961ac493e819a5a24b6fa1cbc?from=personal_page), where we provide an online interface to generate images.
73
 
 
74
 
75
+ ## Acknowledgements
76
+ This model is trained by our copyrighted users [Hongke](https://www.shakker.ai/userpage/b1f1d4128cec474c8085576e6c9fb761/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).