Update README.md
#1
by
kharbouch
- opened
README.md
CHANGED
|
@@ -22,10 +22,10 @@ import numpy as np
|
|
| 22 |
import torch
|
| 23 |
import os, sys
|
| 24 |
|
| 25 |
-
from diffusers import StableDiffusionControlNetPipeline, ControlNetModel, AutoencoderKL,
|
| 26 |
from PIL import Image
|
| 27 |
|
| 28 |
-
controlnet = ControlNetModel.from_pretrained("ghoskno/Fake-Qrcode")
|
| 29 |
pipe = StableDiffusionControlNetPipeline.from_pretrained(
|
| 30 |
"runwayml/stable-diffusion-v1-5", controlnet=controlnet, torch_dtype=torch.float16
|
| 31 |
)
|
|
|
|
| 22 |
import torch
|
| 23 |
import os, sys
|
| 24 |
|
| 25 |
+
from diffusers import StableDiffusionControlNetPipeline, ControlNetModel, AutoencoderKL, DDIMScheduler
|
| 26 |
from PIL import Image
|
| 27 |
|
| 28 |
+
controlnet = ControlNetModel.from_pretrained("ghoskno/Fake-Qrcode", torch_dtype=torch.float16)
|
| 29 |
pipe = StableDiffusionControlNetPipeline.from_pretrained(
|
| 30 |
"runwayml/stable-diffusion-v1-5", controlnet=controlnet, torch_dtype=torch.float16
|
| 31 |
)
|