prithivMLmods
commited on
Commit
β’
927f7db
1
Parent(s):
bf2a287
Update README.md
Browse files
README.md
CHANGED
@@ -21,12 +21,54 @@ license: creativeml-openrail-m
|
|
21 |
# Castor-3D-Portrait-Flux-LoRA
|
22 |
|
23 |
<Gallery />
|
|
|
24 |
|
|
|
25 |
|
26 |
-
|
27 |
|
28 |
-
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
## Download model
|
32 |
|
|
|
21 |
# Castor-3D-Portrait-Flux-LoRA
|
22 |
|
23 |
<Gallery />
|
24 |
+
**The model is still in the training phase. This is not the final version and may contain artifacts and perform poorly in some cases.**
|
25 |
|
26 |
+
## Model description
|
27 |
|
28 |
+
**prithivMLmods/Castor-3D-Portrait-Flux-LoRAA**
|
29 |
|
30 |
+
Image Processing Parameters
|
31 |
|
32 |
+
| Parameter | Value | Parameter | Value |
|
33 |
+
|---------------------------|--------|---------------------------|--------|
|
34 |
+
| LR Scheduler | constant | Noise Offset | 0.03 |
|
35 |
+
| Optimizer | AdamW | Multires Noise Discount | 0.1 |
|
36 |
+
| Network Dim | 64 | Multires Noise Iterations | 10 |
|
37 |
+
| Network Alpha | 32 | Repeat & Steps | 20 & 2.5K |
|
38 |
+
| Epoch | 15 | Save Every N Epochs | 1 |
|
39 |
+
|
40 |
+
Labeling: florence2-en(natural language & English)
|
41 |
+
|
42 |
+
Total Images Used for Training : 19
|
43 |
+
|
44 |
+
## Setting Up
|
45 |
+
```
|
46 |
+
import torch
|
47 |
+
from pipelines import DiffusionPipeline
|
48 |
+
|
49 |
+
base_model = "black-forest-labs/FLUX.1-dev"
|
50 |
+
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
|
51 |
+
|
52 |
+
lora_repo = "prithivMLmods/Castor-3D-Portrait-Flux-LoRA"
|
53 |
+
trigger_word = "3D Portrait" # Leave trigger_word blank if not used.
|
54 |
+
pipe.load_lora_weights(lora_repo)
|
55 |
+
|
56 |
+
device = torch.device("cuda")
|
57 |
+
pipe.to(device)
|
58 |
+
```
|
59 |
+
## App File Structure
|
60 |
+
|
61 |
+
/project-root/
|
62 |
+
|
63 |
+
βββ .gitattributes
|
64 |
+
βββ README.md
|
65 |
+
βββ app.py
|
66 |
+
βββ pythonproject.py
|
67 |
+
|
68 |
+
## Trigger words π§¨
|
69 |
+
|
70 |
+
> [!WARNING]
|
71 |
+
> **Trigger words:** You should use `3D Portrait` to trigger the image generation.
|
72 |
|
73 |
## Download model
|
74 |
|