yashvoladoddi37
commited on
Commit
•
715343d
1
Parent(s):
16166ab
Update README.md
Browse files
README.md
CHANGED
@@ -16,7 +16,7 @@ inference: true
|
|
16 |
should probably proofread and complete it, then remove this comment. -->
|
17 |
|
18 |
|
19 |
-
# LoRA text2image fine-tuning - yashvoladoddi37/
|
20 |
These are LoRA adaption weights for runwayml/stable-diffusion-v1-5. The weights were fine-tuned on the yashvoladoddi37/kanjienglish dataset. You can find some example images in the following.
|
21 |
|
22 |
![img_0](./image_0.png)
|
@@ -24,20 +24,18 @@ These are LoRA adaption weights for runwayml/stable-diffusion-v1-5. The weights
|
|
24 |
![img_2](./image_2.png)
|
25 |
![img_3](./image_3.png)
|
26 |
|
27 |
-
|
28 |
-
|
29 |
-
## Intended uses & limitations
|
30 |
-
|
31 |
#### How to use
|
32 |
|
33 |
```python
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
|
|
|
|
|
16 |
should probably proofread and complete it, then remove this comment. -->
|
17 |
|
18 |
|
19 |
+
# LoRA text2image fine-tuning - yashvoladoddi37/kanji-diffusion-v1-5
|
20 |
These are LoRA adaption weights for runwayml/stable-diffusion-v1-5. The weights were fine-tuned on the yashvoladoddi37/kanjienglish dataset. You can find some example images in the following.
|
21 |
|
22 |
![img_0](./image_0.png)
|
|
|
24 |
![img_2](./image_2.png)
|
25 |
![img_3](./image_3.png)
|
26 |
|
|
|
|
|
|
|
|
|
27 |
#### How to use
|
28 |
|
29 |
```python
|
30 |
+
from diffusers import StableDiffusionPipeline
|
31 |
+
import torch
|
32 |
+
|
33 |
+
model_path = "yashvoladoddi37/kanji-diffusion-v1-5"
|
34 |
+
pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16, use_safetensors = True).to("cuda")
|
35 |
+
pipe.unet.load_attn_procs(model_path)
|
36 |
+
pipe.to("cuda")
|
37 |
+
|
38 |
+
prompt = "a Kanji meaning YouTube"
|
39 |
+
image = pipe(prompt).images[0]
|
40 |
+
image.save("youtube-kanji-v1-4.png")
|
41 |
+
```
|