Update README.md
Browse files
README.md
CHANGED
@@ -22,6 +22,50 @@ license: apache-2.0
|
|
22 |
|
23 |
<Gallery />
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
## Trigger words
|
27 |
|
|
|
22 |
|
23 |
<Gallery />
|
24 |
|
25 |
+
---
|
26 |
+
|
27 |
+
# Model description for Qwen-Image-Synthetic-Face
|
28 |
+
|
29 |
+
Image Processing Parameters
|
30 |
+
|
31 |
+
| Parameter | Value | Parameter | Value |
|
32 |
+
|---------------------------|--------|---------------------------|--------|
|
33 |
+
| LR Scheduler | constant | Noise Offset | 0.03 |
|
34 |
+
| Optimizer | AdamW | Multires Noise Discount | 0.1 |
|
35 |
+
| Network Dim | 64 | Multires Noise Iterations | 10 |
|
36 |
+
| Network Alpha | 32 | Repeat & Steps | 22 & 2650 |
|
37 |
+
| Epoch | 20 | Save Every N Epochs | 2 |
|
38 |
+
|
39 |
+
Labeling: florence2-en(natural language & English)
|
40 |
+
|
41 |
+
Total Images Used for Training : 26 [HQ Images]
|
42 |
+
|
43 |
+
## Best Dimensions & Inference
|
44 |
+
|
45 |
+
| **Dimensions** | **Aspect Ratio** | **Recommendation** |
|
46 |
+
|-----------------|------------------|---------------------------|
|
47 |
+
| 1472 x 1140 | 4:3 (approx.) | Best |
|
48 |
+
| 1024 x 1024 | 1:1 | Default |
|
49 |
+
|
50 |
+
### Inference Range
|
51 |
+
|
52 |
+
- **Recommended Inference Steps:** 35-50
|
53 |
+
|
54 |
+
## Setting Up
|
55 |
+
```python
|
56 |
+
import torch
|
57 |
+
from diffusers import DiffusionPipeline
|
58 |
+
|
59 |
+
base_model = "Qwen/Qwen-Image"
|
60 |
+
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
|
61 |
+
|
62 |
+
lora_repo = "prithivMLmods/Qwen-Image-Synthetic-Face"
|
63 |
+
trigger_word = "Synthetic Face"
|
64 |
+
pipe.load_lora_weights(lora_repo)
|
65 |
+
|
66 |
+
device = torch.device("cuda")
|
67 |
+
pipe.to(device)
|
68 |
+
```
|
69 |
|
70 |
## Trigger words
|
71 |
|