Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,7 @@ import spaces
|
|
13 |
from diffusers import (
|
14 |
StableDiffusionPipeline,
|
15 |
StableDiffusionControlNetImg2ImgPipeline,
|
|
|
16 |
ControlNetModel,
|
17 |
DDIMScheduler,
|
18 |
DPMSolverMultistepScheduler,
|
@@ -32,7 +33,7 @@ controlnet = ControlNetModel.from_pretrained(
|
|
32 |
"DionTimmer/controlnet_qrcode-control_v1p_sd15", torch_dtype=torch.float16
|
33 |
).to("cuda")
|
34 |
|
35 |
-
pipe =
|
36 |
"digiplay/GhostMixV1.2VAE",
|
37 |
#"CompVis/stable-diffusion-v1-4",
|
38 |
controlnet = controlnet,
|
@@ -325,7 +326,7 @@ Happy creating!
|
|
325 |
strength,
|
326 |
seed,
|
327 |
init_image,
|
328 |
-
|
329 |
use_qr_code_as_init_image,
|
330 |
sampler,
|
331 |
],
|
@@ -385,7 +386,7 @@ Happy creating!
|
|
385 |
strength,
|
386 |
seed,
|
387 |
init_image,
|
388 |
-
|
389 |
use_qr_code_as_init_image,
|
390 |
sampler,
|
391 |
],
|
|
|
13 |
from diffusers import (
|
14 |
StableDiffusionPipeline,
|
15 |
StableDiffusionControlNetImg2ImgPipeline,
|
16 |
+
StableDiffusionControlNetPipeline,
|
17 |
ControlNetModel,
|
18 |
DDIMScheduler,
|
19 |
DPMSolverMultistepScheduler,
|
|
|
33 |
"DionTimmer/controlnet_qrcode-control_v1p_sd15", torch_dtype=torch.float16
|
34 |
).to("cuda")
|
35 |
|
36 |
+
pipe = StableDiffusionControlNetPipeline.from_pretrained(
|
37 |
"digiplay/GhostMixV1.2VAE",
|
38 |
#"CompVis/stable-diffusion-v1-4",
|
39 |
controlnet = controlnet,
|
|
|
326 |
strength,
|
327 |
seed,
|
328 |
init_image,
|
329 |
+
qrcode_image,
|
330 |
use_qr_code_as_init_image,
|
331 |
sampler,
|
332 |
],
|
|
|
386 |
strength,
|
387 |
seed,
|
388 |
init_image,
|
389 |
+
qrcode_image,
|
390 |
use_qr_code_as_init_image,
|
391 |
sampler,
|
392 |
],
|