Staticaliza commited on
Commit
e413311
·
verified ·
1 Parent(s): 59877ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,10 +27,10 @@ DEFAULT_WIDTH = 1024
27
 
28
  REPO = "sd-community/sdxl-flash"
29
 
30
- vae = AutoencoderKL.from_pretrained("john-doe-12344/anything-v4.0-vae").half().to(DEVICE), vae=vae
31
  controlnet = ControlNetModel.from_pretrained("MakiPan/controlnet-encoded-hands-130k", torch_dtype=torch.float16)
32
 
33
- model = StableDiffusionXLPipeline.from_pretrained(REPO, controlnet=controlnet, torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
34
  model.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
35
  model.set_adapters(["base"], adapter_weights=[0.7])
36
  model.to(DEVICE)
 
27
 
28
  REPO = "sd-community/sdxl-flash"
29
 
30
+ vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
31
  controlnet = ControlNetModel.from_pretrained("MakiPan/controlnet-encoded-hands-130k", torch_dtype=torch.float16)
32
 
33
+ model = StableDiffusionXLPipeline.from_pretrained(REPO, vae=vae, controlnet=controlnet, torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
34
  model.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
35
  model.set_adapters(["base"], adapter_weights=[0.7])
36
  model.to(DEVICE)