prithivMLmods
commited on
Commit
•
f304c1b
1
Parent(s):
c5c1961
Update README.md
Browse files
README.md
CHANGED
@@ -25,12 +25,50 @@ license: creativeml-openrail-m
|
|
25 |
|
26 |
<Gallery />
|
27 |
|
|
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
## Trigger words
|
30 |
|
31 |
You should use `sketch card` to trigger the image generation.
|
32 |
|
33 |
-
|
34 |
## Download model
|
35 |
|
36 |
Weights for this model are available in Safetensors format.
|
|
|
25 |
|
26 |
<Gallery />
|
27 |
|
28 |
+
**The model is still in the training phase. This is not the final version and may contain artifacts and perform poorly in some cases.**
|
29 |
|
30 |
+
## Model description
|
31 |
+
|
32 |
+
**prithivMLmods/Flux.1-Dev-Sketch-Card-LoRA**
|
33 |
+
|
34 |
+
Image Processing Parameters
|
35 |
+
|
36 |
+
| Parameter | Value | Parameter | Value |
|
37 |
+
|---------------------------|--------|---------------------------|--------|
|
38 |
+
| LR Scheduler | constant | Noise Offset | 0.03 |
|
39 |
+
| Optimizer | AdamW | Multires Noise Discount | 0.1 |
|
40 |
+
| Network Dim | 64 | Multires Noise Iterations | 10 |
|
41 |
+
| Network Alpha | 32 | Repeat & Steps | 14 & 1990 |
|
42 |
+
| Epoch | 16 | Save Every N Epochs | 1 |
|
43 |
+
|
44 |
+
Labeling: florence2-en(natural language & English)
|
45 |
+
|
46 |
+
Total Images Used for Training : 13
|
47 |
+
|
48 |
+
## Best Dimensions
|
49 |
+
|
50 |
+
- 768 x 1024 (Best)
|
51 |
+
- 1024 x 1024 (Default)
|
52 |
+
|
53 |
+
## Setting Up
|
54 |
+
```python
|
55 |
+
import torch
|
56 |
+
from pipelines import DiffusionPipeline
|
57 |
+
|
58 |
+
base_model = "black-forest-labs/FLUX.1-dev"
|
59 |
+
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
|
60 |
+
|
61 |
+
lora_repo = "prithivMLmods/Flux.1-Dev-Sketch-Card-LoRA"
|
62 |
+
trigger_word = "sketch card"
|
63 |
+
pipe.load_lora_weights(lora_repo)
|
64 |
+
|
65 |
+
device = torch.device("cuda")
|
66 |
+
pipe.to(device)
|
67 |
+
```
|
68 |
## Trigger words
|
69 |
|
70 |
You should use `sketch card` to trigger the image generation.
|
71 |
|
|
|
72 |
## Download model
|
73 |
|
74 |
Weights for this model are available in Safetensors format.
|