wanghaofan commited on
Commit
385cbd4
1 Parent(s): e9b77d8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +35 -5
README.md CHANGED
@@ -23,16 +23,46 @@ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICE
23
  ---
24
  # FLUX.1-dev-LoRA-blended-realistic-illustration
25
 
26
- <Gallery />
 
 
 
 
27
 
28
 
 
 
 
29
  ## Trigger words
30
 
31
- You should use `artistic style blends reality and illustration elements.` to trigger the image generation.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
 
 
33
 
34
- ## Download model
35
 
36
- Weights for this model are available in Safetensors format.
37
 
38
- [Download](/Shakker-Labs/FLUX.1-dev-LoRA-blended-realistic-illustration/tree/main) them in the Files & versions tab.
 
 
23
  ---
24
  # FLUX.1-dev-LoRA-blended-realistic-illustration
25
 
26
+ This is a LoRA trained on FLUX.1-dev for blended realistic illustration by [Muertu](https://www.shakker.ai/userpage/562c8ddb15e147c9b1c31878f865c901/publish), the front character is in illustration style, while the background is realistic.
27
+
28
+ <div class="container">
29
+ <img src="./assets/poster.png" width="1024"/>
30
+ </div>
31
 
32
 
33
+ ## Showcases
34
+ <Gallery />
35
+
36
  ## Trigger words
37
 
38
+ You should use `artistic style blends reality and illustration elements.` to trigger the image generation. The recommended scale is `1.0`.
39
+
40
+ ## Inference
41
+
42
+ ```
43
+ import torch
44
+ from diffusers import FluxPipeline
45
+
46
+ pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
47
+ pipe.load_lora_weights("Shakker-Labs/FLUX.1-dev-LoRA-blended-realistic-illustration", weight_name="FLUX-dev-lora-blended_realistic_illustration.safetensors")
48
+ pipe.fuse_lora(lora_scale=1.0)
49
+ pipe.to("cuda")
50
+
51
+ prompt = A peaceful outdoor scene,surrounded by lush green leaves and vibrant vegetation on the stone road. A cartoon style man sits on white clothes,gently caressing two animated cats,one orange and one white. Soft sunlight creates shadows,simple walls and pebble floors create a peaceful atmosphere,blending reality and animation elements,and natural and procedural characters. The artistic style blends elements of reality and illustration."
52
+
53
+ image = pipe(prompt,
54
+ num_inference_steps=24,
55
+ guidance_scale=3.5,
56
+ width=768, height=1024,
57
+ ).images[0]
58
+ image.save(f"example.png")
59
+ ```
60
+
61
 
62
+ ## Online Inference
63
 
64
+ You can also download this model at [Shakker AI](https://www.shakker.ai/modelinfo/4ea23c6ad148462589ea42e4eeac9897?from=personal_page), where we provide an online interface to generate images.
65
 
 
66
 
67
+ ## Acknowledgements
68
+ This model is trained by our copyrighted users [Muertu](https://www.shakker.ai/userpage/562c8ddb15e147c9b1c31878f865c901/publish). We release this model under permissions.