Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,51 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: Tongyi-MAI/Z-Image-Turbo
|
| 3 |
+
tags:
|
| 4 |
+
- lora
|
| 5 |
+
- text-to-image
|
| 6 |
+
- diffusion
|
| 7 |
+
- z-image-turbo
|
| 8 |
+
license: other
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# windy_storm — LoRA
|
| 12 |
+
|
| 13 |
+
LoRA adapter trained for the concept/style **"windy_storm"**.
|
| 14 |
+
|
| 15 |
+
## Trigger word
|
| 16 |
+
Use this token in your prompt:
|
| 17 |
+
- **`windy_storm`**
|
| 18 |
+
|
| 19 |
+
## Base model
|
| 20 |
+
- **Tongyi-MAI/Z-Image-Turbo**
|
| 21 |
+
|
| 22 |
+
## Files
|
| 23 |
+
- `*.safetensors` — LoRA weights
|
| 24 |
+
- `config.yaml` — training configuration
|
| 25 |
+
- (optional) `log.txt` — training log
|
| 26 |
+
|
| 27 |
+
## How to use
|
| 28 |
+
|
| 29 |
+
### A) ComfyUI / AUTOMATIC1111
|
| 30 |
+
1. Put the `.safetensors` file into your LoRA folder.
|
| 31 |
+
2. Prompt example:
|
| 32 |
+
- `windy_storm, portrait photo, natural light, high detail`
|
| 33 |
+
|
| 34 |
+
(Adjust LoRA strength to taste, e.g. 0.6–1.0.)
|
| 35 |
+
|
| 36 |
+
### B) Diffusers (generic example)
|
| 37 |
+
```python
|
| 38 |
+
import torch
|
| 39 |
+
from diffusers import DiffusionPipeline
|
| 40 |
+
|
| 41 |
+
pipe = DiffusionPipeline.from_pretrained(
|
| 42 |
+
"Tongyi-MAI/Z-Image-Turbo",
|
| 43 |
+
torch_dtype=torch.bfloat16
|
| 44 |
+
).to("cuda")
|
| 45 |
+
|
| 46 |
+
# Replace with your actual repo + filename on the Hub:
|
| 47 |
+
pipe.load_lora_weights("<YOUR_REPO_ID>", weight_name="<YOUR_LORA_FILENAME>.safetensors")
|
| 48 |
+
|
| 49 |
+
prompt = "windy_storm, portrait photo, natural light, high detail"
|
| 50 |
+
image = pipe(prompt).images[0]
|
| 51 |
+
image.save("out.png")
|