AP123 commited on
Commit
01e1199
1 Parent(s): fb15d47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -18,7 +18,7 @@ controlnet = ControlNetModel.from_pretrained(
18
  )
19
 
20
  pipe = StableDiffusionControlNetImg2ImgPipeline.from_pretrained(
21
- "XpucT/Deliberate",
22
  controlnet=controlnet,
23
  safety_checker=None,
24
  torch_dtype=torch.float16,
@@ -34,9 +34,9 @@ def inference(
34
  input_image: Image.Image,
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
  ):
 
18
  )
19
 
20
  pipe = StableDiffusionControlNetImg2ImgPipeline.from_pretrained(
21
+ "SG161222/Realistic_Vision_V2.0",
22
  controlnet=controlnet,
23
  safety_checker=None,
24
  torch_dtype=torch.float16,
 
34
  input_image: Image.Image,
35
  prompt: str,
36
  negative_prompt: str,
37
+ guidance_scale: float = 8.0,
38
+ controlnet_conditioning_scale: float = 1,
39
+ strength: float = 0.9,
40
  seed: int = -1,
41
  sampler = "DPM++ Karras SDE",
42
  ):