prithivMLmods
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -31,7 +31,42 @@ license: creativeml-openrail-m
|
|
31 |
|
32 |
<Gallery />
|
33 |
|
|
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
## Trigger words
|
36 |
|
37 |
You should use `MJ v6` to trigger the image generation.
|
|
|
31 |
|
32 |
<Gallery />
|
33 |
|
34 |
+
## Model description for MJv6
|
35 |
|
36 |
+
Image Processing Parameters
|
37 |
+
|
38 |
+
| Parameter | Value | Parameter | Value |
|
39 |
+
|---------------------------|--------|---------------------------|--------|
|
40 |
+
| LR Scheduler | constant | Noise Offset | 0.03 |
|
41 |
+
| Optimizer | AdamW8 | Multires Noise Discount | 0.1 |
|
42 |
+
| Network Dim | 64 | Multires Noise Iterations | 10 |
|
43 |
+
| Network Alpha | 32 | Repeat & Steps | 25 & 3660 |
|
44 |
+
| Epoch | 28 | Save Every N Epochs | 1 |
|
45 |
+
|
46 |
+
Labeling: florence2-en(natural language & English)
|
47 |
+
|
48 |
+
Total Images Used for Training : 36
|
49 |
+
|
50 |
+
## Best Dimensions
|
51 |
+
|
52 |
+
- 768 x 1024 (Best)
|
53 |
+
- 1024 x 1024 (Default)
|
54 |
+
|
55 |
+
## Setting Up
|
56 |
+
```python
|
57 |
+
import torch
|
58 |
+
from pipelines import DiffusionPipeline
|
59 |
+
|
60 |
+
base_model = "black-forest-labs/FLUX.1-dev"
|
61 |
+
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
|
62 |
+
|
63 |
+
lora_repo = "strangerzonehf/Flux-Midjourney-Mix2-LoRA"
|
64 |
+
trigger_word = "MJ v6"
|
65 |
+
pipe.load_lora_weights(lora_repo)
|
66 |
+
|
67 |
+
device = torch.device("cuda")
|
68 |
+
pipe.to(device)
|
69 |
+
```
|
70 |
## Trigger words
|
71 |
|
72 |
You should use `MJ v6` to trigger the image generation.
|