AP123 commited on
Commit
fb15d47
1 Parent(s): 0277b1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -14,7 +14,7 @@ from diffusers import (
14
  )
15
 
16
  controlnet = ControlNetModel.from_pretrained(
17
- "DionTimmer/controlnet_qrcode-control_v1p_sd15", torch_dtype=torch.float16
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.0,
39
- strength: float = 0.8,
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
  ):