Ahmed Faiyaz
commited on
Commit
•
da37867
1
Parent(s):
247ad4d
Update README.md
Browse files
README.md
CHANGED
@@ -14,19 +14,19 @@ instance_prompt: null
|
|
14 |
|
15 |
---
|
16 |
# Mukh-Oboyob
|
|
|
17 |
```py
|
18 |
-
|
19 |
-
from
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
)
|
30 |
```
|
31 |
<Gallery />
|
32 |
|
|
|
14 |
|
15 |
---
|
16 |
# Mukh-Oboyob
|
17 |
+
## Usage
|
18 |
```py
|
19 |
+
import torch
|
20 |
+
from diffusers import StableDiffusionPipeline
|
21 |
+
|
22 |
+
model_id = "CompVis/stable-diffusion-v1-4"
|
23 |
+
device = "cuda"
|
24 |
+
|
25 |
+
|
26 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id)
|
27 |
+
pipe.unet.load_attn_procs("gr33nr1ng3r/Mukh-Oboyob")
|
28 |
+
pipe = pipe.to(device)
|
29 |
+
|
|
|
30 |
```
|
31 |
<Gallery />
|
32 |
|