Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,16 +29,17 @@ qrcode_generator = qrcode.QRCode(
|
|
| 29 |
)
|
| 30 |
|
| 31 |
controlnet = ControlNetModel.from_pretrained(
|
| 32 |
-
"
|
| 33 |
).to("cuda")
|
| 34 |
|
| 35 |
-
pipe =
|
| 36 |
-
"
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
torch_dtype=torch.float16,
|
|
|
|
| 40 |
).to("cuda")
|
| 41 |
-
#
|
| 42 |
|
| 43 |
|
| 44 |
def resize_for_condition_image(input_image: Image.Image, resolution: int):
|
|
|
|
| 29 |
)
|
| 30 |
|
| 31 |
controlnet = ControlNetModel.from_pretrained(
|
| 32 |
+
"DionTimmer/controlnet_qrcode-control_v1p_sd15", torch_dtype=torch.float16
|
| 33 |
).to("cuda")
|
| 34 |
|
| 35 |
+
pipe = StableDiffusionControlNetPipeline.from_pretrained(
|
| 36 |
+
# "runwayml/stable-diffusion-v1-5",
|
| 37 |
+
"digiplay/GhostMixV1.2VAE",
|
| 38 |
+
controlnet = controlnet,
|
| 39 |
+
torch_dtype = torch.float16,
|
| 40 |
+
safety_checker =None,
|
| 41 |
).to("cuda")
|
| 42 |
+
#pipe.enable_xformers_memory_efficient_attention()
|
| 43 |
|
| 44 |
|
| 45 |
def resize_for_condition_image(input_image: Image.Image, resolution: int):
|