Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ from diffusers import (
|
|
14 |
)
|
15 |
|
16 |
controlnet = ControlNetModel.from_pretrained(
|
17 |
-
"
|
18 |
)
|
19 |
|
20 |
pipe = StableDiffusionControlNetImg2ImgPipeline.from_pretrained(
|
@@ -35,8 +35,8 @@ def inference(
|
|
35 |
prompt: str,
|
36 |
negative_prompt: str,
|
37 |
guidance_scale: float = 10.0,
|
38 |
-
controlnet_conditioning_scale: float = 1.
|
39 |
-
strength: float = 0.
|
40 |
seed: int = -1,
|
41 |
sampler = "DPM++ Karras SDE",
|
42 |
):
|
|
|
14 |
)
|
15 |
|
16 |
controlnet = ControlNetModel.from_pretrained(
|
17 |
+
"monster-labs/control_v1p_sd15_qrcode_monster", torch_dtype=torch.float16
|
18 |
)
|
19 |
|
20 |
pipe = StableDiffusionControlNetImg2ImgPipeline.from_pretrained(
|
|
|
35 |
prompt: str,
|
36 |
negative_prompt: str,
|
37 |
guidance_scale: float = 10.0,
|
38 |
+
controlnet_conditioning_scale: float = 1.1,
|
39 |
+
strength: float = 0.95,
|
40 |
seed: int = -1,
|
41 |
sampler = "DPM++ Karras SDE",
|
42 |
):
|