Ahmed Faiyaz commited on
Commit
da37867
1 Parent(s): 247ad4d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -12
README.md CHANGED
@@ -14,19 +14,19 @@ instance_prompt: null
14
 
15
  ---
16
  # Mukh-Oboyob
 
17
  ```py
18
- from diffusers import DiffusionPipeline
19
- from transformers import AutoTokenizer,AutoModel
20
- from diffusers.models import AutoencoderKL
21
-
22
- vae = AutoencoderKL.from_pretrained("stabilityai/sd-vae-ft-ema")
23
-
24
- pipeline = DiffusionPipeline.from_pretrained(
25
- "CompVis/stable-diffusion-v1-4",
26
- tokenizer=AutoTokenizer.from_pretrained('csebuetnlp/banglabert'),
27
- text_encoder = AutoModel.from_pretrained("csebuetnlp/banglabert"),
28
- vae=vae
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