Update README.md
Browse files
README.md
CHANGED
@@ -1,9 +1,12 @@
|
|
1 |
---
|
2 |
tags:
|
3 |
- text-to-image
|
|
|
4 |
- lora
|
5 |
- diffusers
|
6 |
-
-
|
|
|
|
|
7 |
widget:
|
8 |
- text: >-
|
9 |
Makoto Shinkai style, a boy and a girl looking out of a window with a cat
|
@@ -35,6 +38,8 @@ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICE
|
|
35 |
---
|
36 |
# FLUX.1-dev-LoRA-Makoto-Shinkai
|
37 |
|
|
|
|
|
38 |
<Gallery />
|
39 |
|
40 |
|
@@ -43,8 +48,23 @@ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICE
|
|
43 |
You should use `Makoto Shinkai style` to trigger the image generation.
|
44 |
|
45 |
|
46 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
-
[Download](/InstantX/FLUX.1-dev-LoRA-Makoto-Shinkai/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 |
Makoto Shinkai style, a boy and a girl looking out of a window with a cat
|
|
|
38 |
---
|
39 |
# FLUX.1-dev-LoRA-Makoto-Shinkai
|
40 |
|
41 |
+
This is a Makoto Shinkai style LoRA trained on FLUX.1-dev.
|
42 |
+
|
43 |
<Gallery />
|
44 |
|
45 |
|
|
|
48 |
You should use `Makoto Shinkai style` to trigger the image generation.
|
49 |
|
50 |
|
51 |
+
## Inference
|
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("InstantX/FLUX.1-dev-LoRA-Makoto-Shinkai", weight_name="Makoto_Shinkai_style.safetensors")
|
58 |
+
pipe.fuse_lora(lora_scale=1.0)
|
59 |
+
pipe.to("cuda")
|
60 |
+
|
61 |
+
prompt = "Makoto Shinkai style, a shepherd boy floating on a wooly cloud-whale, holding a glowing dandelion staff to guide sheep-shaped cumulus, miniature storm clouds grazing nearby, his patched jacket flapping in high-altitude winds, aurora-like ribbons in peach and lavender stretching across the sky"
|
62 |
|
63 |
+
image = pipe(prompt,
|
64 |
+
num_inference_steps=24,
|
65 |
+
guidance_scale=3.5,
|
66 |
+
width=960, height=1280,
|
67 |
+
).images[0]
|
68 |
+
image.save(f"example.png")
|
69 |
+
```
|
70 |
|
|