Update README.md
Browse files
README.md
CHANGED
@@ -99,6 +99,22 @@ license: unknown
|
|
99 |
|
100 |
First version of the character Lilith Daremo
|
101 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
## Trigger words
|
103 |
|
104 |
You should use `LilithDareMo` to trigger the image generation.
|
|
|
99 |
|
100 |
First version of the character Lilith Daremo
|
101 |
|
102 |
+
## Setting Up
|
103 |
+
```python
|
104 |
+
import torch
|
105 |
+
from pipelines import DiffusionPipeline
|
106 |
+
|
107 |
+
base_model = "black-forest-labs/FLUX.1-dev"
|
108 |
+
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
|
109 |
+
|
110 |
+
lora_repo = "Acristobo/Flux1D_Lora_LilithDareMo_v1.0__NoBody"
|
111 |
+
trigger_word = "LilithDareMo"
|
112 |
+
pipe.load_lora_weights(lora_repo)
|
113 |
+
|
114 |
+
device = torch.device("cuda")
|
115 |
+
pipe.to(device)
|
116 |
+
```
|
117 |
+
|
118 |
## Trigger words
|
119 |
|
120 |
You should use `LilithDareMo` to trigger the image generation.
|