wanghaofan commited on
Commit
9a03393
1 Parent(s): 41d47ea

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +41 -4
README.md CHANGED
@@ -4,7 +4,9 @@ tags:
4
  - stable-diffusion
5
  - lora
6
  - diffusers
7
- - template:sd-lora
 
 
8
  widget:
9
  - text: >-
10
  This poster shows a smartphone on a black background. The iphone screen
@@ -38,12 +40,47 @@ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICE
38
  ---
39
  # FLUX.1-dev-LoRA-Micro-landscape-on-Mobile-Phone
40
 
 
 
 
 
 
 
 
 
41
  <Gallery />
42
 
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
- ## Download model
46
 
47
- Weights for this model are available in Safetensors format.
48
 
49
- [Download](/Shakker-Labs/FLUX.1-dev-LoRA-Micro-landscape-on-Mobile-Phone/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
  This poster shows a smartphone on a black background. The iphone screen
 
40
  ---
41
  # FLUX.1-dev-LoRA-Micro-landscape-on-Mobile-Phone
42
 
43
+
44
+ This is a LoRA trained on FLUX.1-dev for micro landscape on mobile phone by [DalaBengba](https://www.shakker.ai/userpage/1dfc365becb94c78b5a79499ca3c8685/publish) on [Shakker AI](https://www.shakker.ai/modelinfo/d6d1c836954a420aa87dc4672621fb6d?from=feed).
45
+
46
+ <div class="container">
47
+ <img src="./poster.jpg" width="1024"/>
48
+ </div>
49
+
50
+ ## Showcases
51
  <Gallery />
52
 
53
 
54
+ ## Trigger words
55
+ The trigger word is not required. The recommended scale is `0.6` to `0.9` in diffusers.
56
+
57
+ ## Usage suggestion
58
+ When you come up with a scene, you can directly give it to GPT to enrich the details. At the beginning, you can tell it this: 'I am using AI drawing software for creation, and I need you to help me write some prompts in natural language. Start the sentence like this: `This poster shows a smartphone against a dark background. The phone screen reveals a miniature scene of a xxxxxxx landscape, seamlessly integrated into the phone’s frame. In this sentence, xxxxxxx represents the specific scene. After this sentence, add some specific details about the scene.`
59
+
60
+ ## Inference
61
+
62
+ ```python
63
+ import torch
64
+ from diffusers import FluxPipeline
65
+
66
+ pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
67
+ pipe.load_lora_weights("Shakker-Labs/FLUX.1-dev-LoRA-Micro-landscape-on-Mobile-Phone", weight_name="FLUX-dev-lora-micro-landscape.safetensors")
68
+ pipe.fuse_lora(lora_scale=0.7)
69
+ pipe.to("cuda")
70
+
71
+ prompt = "This poster shows a smartphone against a dark background. The phone screen reveals a miniature stereoscopic scene of New York City, seamlessly integrated into the phone’s frame."
72
+
73
+ image = pipe(prompt,
74
+ num_inference_steps=24,
75
+ guidance_scale=3.5,
76
+ ).images[0]
77
+ image.save(f"example.png")
78
+ ```
79
+
80
+ ## Online Inference
81
 
82
+ You can also run this model at [Shakker AI](https://www.shakker.ai/modelinfo/d6d1c836954a420aa87dc4672621fb6d?from=feed), where we provide an online interface to generate images.
83
 
 
84
 
85
+ ## Acknowledgements
86
+ This model is trained by our copyrighted users [DalaBengba](https://www.shakker.ai/userpage/1dfc365becb94c78b5a79499ca3c8685/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).