Commit
·
789d9bd
1
Parent(s):
c71ca84
Update README.md
Browse files
README.md
CHANGED
@@ -14,12 +14,25 @@ inference: true
|
|
14 |
|
15 |
# LoRA text2image fine-tuning - johnowhitaker/lora_pn03_036sim
|
16 |
|
17 |
-
These are LoRA adaption weights for playgroundai/playground-v2-1024px-aesthetic. The weights were fine-tuned on a custom dataset.
|
18 |
-
|
19 |

|
20 |

|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
|
25 |
LoRA for the text encoder was enabled: False.
|
|
|
14 |
|
15 |
# LoRA text2image fine-tuning - johnowhitaker/lora_pn03_036sim
|
16 |
|
17 |
+
These are LoRA adaption weights for playgroundai/playground-v2-1024px-aesthetic. The weights were fine-tuned on a custom dataset.
|
|
|
18 |

|
19 |

|
20 |
+
|
21 |
+
Usage:
|
22 |
+
```python
|
23 |
+
import torch
|
24 |
+
from diffusers import DiffusionPipeline
|
25 |
+
device = "cuda:7"
|
26 |
+
pipe = DiffusionPipeline.from_pretrained(
|
27 |
+
'playgroundai/playground-v2-1024px-aesthetic',
|
28 |
+
torch_dtype=torch.float16,
|
29 |
+
add_watermarker=False,
|
30 |
+
variant="fp16"
|
31 |
+
)
|
32 |
+
pipe.to(device)
|
33 |
+
pipe.load_lora_weights('johnowhitaker/lora_pn03_036sim')
|
34 |
+
pipe("An owl wearing a tophat and tie, studio lighting, black background").images[0]
|
35 |
+
```
|
36 |
|
37 |
|
38 |
LoRA for the text encoder was enabled: False.
|