Update README.md
Browse files
README.md
CHANGED
@@ -20,15 +20,15 @@ Okkhor Diffusion is a category of Denoising Diffusion Probabilistic Models desig
|
|
20 |
### Usage
|
21 |
```py
|
22 |
from diffusers import DiffusionPipeline
|
23 |
-
from typing import List, Optional, Tuple, Union
|
24 |
import torch
|
|
|
25 |
pipeline = DiffusionPipeline.from_pretrained(
|
26 |
"ahmedfaiyaz/OkkhorDiffusion-Ekush",
|
27 |
custom_pipeline="ahmedfaiyaz/OkkhorDiffusion",
|
28 |
-
embedding=torch.
|
29 |
)
|
30 |
-
pipeline.to(
|
31 |
-
pipeline.embedding=torch.tensor([10]) # 'ও': 10
|
32 |
pipeline(batch_size=1,num_inference_steps=1000).images[0]
|
33 |
```
|
34 |
|
|
|
20 |
### Usage
|
21 |
```py
|
22 |
from diffusers import DiffusionPipeline
|
|
|
23 |
import torch
|
24 |
+
device="cuda"
|
25 |
pipeline = DiffusionPipeline.from_pretrained(
|
26 |
"ahmedfaiyaz/OkkhorDiffusion-Ekush",
|
27 |
custom_pipeline="ahmedfaiyaz/OkkhorDiffusion",
|
28 |
+
embedding=torch.int16
|
29 |
)
|
30 |
+
pipeline.to(device)
|
31 |
+
pipeline.embedding=torch.tensor([10],device=device) # 'ও': 10
|
32 |
pipeline(batch_size=1,num_inference_steps=1000).images[0]
|
33 |
```
|
34 |
|