thorjank commited on
Commit
7b5a285
·
verified ·
1 Parent(s): ff76645

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +54 -3
README.md CHANGED
@@ -1,3 +1,54 @@
1
- ---
2
- license: mit
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
+ - character
9
+ license: other
10
+ ---
11
+
12
+ # hardbody — LoRA
13
+
14
+ LoRA adapter trained on **Tongyi-MAI/Z-Image-Turbo**.
15
+
16
+ > Note: `trigger_word` is **not set** in the training config. In practice, use the concept name **`hardbody`** in your prompt, and/or rely on the dataset’s default caption described below.
17
+
18
+ ## Base model
19
+ - **Tongyi-MAI/Z-Image-Turbo**
20
+
21
+ ## Trigger / keyword
22
+ - Suggested keyword: **`hardbody`**
23
+ - Default caption used during training: **`curvy female body`**
24
+
25
+ ## Files
26
+ - `*.safetensors` — LoRA weights
27
+ - `config.yaml`, `job_config.json` — training configuration
28
+ - (optional) `log.txt` — training log
29
+
30
+ ## How to use
31
+
32
+ ### A) ComfyUI / AUTOMATIC1111
33
+ 1. Put the `.safetensors` file into your LoRA folder.
34
+ 2. Prompt examples (safe / non-explicit):
35
+ - `hardbody, athletic figure, studio photo, soft lighting, high detail`
36
+ - `hardbody, fashion shoot, street style, natural light, high detail`
37
+
38
+ (Adjust LoRA strength to taste, e.g. 0.6–1.0.)
39
+
40
+ ### B) Diffusers (generic example)
41
+ ```python
42
+ import torch
43
+ from diffusers import DiffusionPipeline
44
+
45
+ pipe = DiffusionPipeline.from_pretrained(
46
+ "Tongyi-MAI/Z-Image-Turbo",
47
+ torch_dtype=torch.bfloat16
48
+ ).to("cuda")
49
+
50
+ pipe.load_lora_weights("thorjank/<REPO_NAME>", weight_name="<YOUR_LORA_FILENAME>.safetensors")
51
+
52
+ prompt = "hardbody, athletic figure, studio photo, soft lighting, high detail"
53
+ image = pipe(prompt).images[0]
54
+ image.save("out.png")