Severian commited on
Commit
b219766
·
verified ·
1 Parent(s): d4d77ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -29,16 +29,17 @@ qrcode_generator = qrcode.QRCode(
29
  )
30
 
31
  controlnet = ControlNetModel.from_pretrained(
32
- "monster-labs/control_v1p_sd15_qrcode_monster", torch_dtype=torch.float16
33
  ).to("cuda")
34
 
35
- pipe = StableDiffusionControlNetImg2ImgPipeline.from_pretrained(
36
- "rupeshs/LCM-runwayml-stable-diffusion-v1-5",
37
- controlnet=controlnet,
38
- safety_checker=None,
39
- torch_dtype=torch.float16,
 
40
  ).to("cuda")
41
- # pipe.enable_xformers_memory_efficient_attention()
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):