Commit
·
7f35d0f
1
Parent(s):
1ecb6a3
Update README.md
Browse files
README.md
CHANGED
|
@@ -29,8 +29,9 @@ Code that was used to get the results:
|
|
| 29 |
```py
|
| 30 |
from diffusers import DiffusionPipeline, DDIMScheduler
|
| 31 |
import torch
|
|
|
|
| 32 |
|
| 33 |
-
pipe = DiffusionPipeline.from_pretrained("
|
| 34 |
pipe.to("cuda")
|
| 35 |
pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
|
| 36 |
|
|
|
|
| 29 |
```py
|
| 30 |
from diffusers import DiffusionPipeline, DDIMScheduler
|
| 31 |
import torch
|
| 32 |
+
import PIL
|
| 33 |
|
| 34 |
+
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2-1", torch_dtype=torch.float16, safety_checker=None)
|
| 35 |
pipe.to("cuda")
|
| 36 |
pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
|
| 37 |
|