Update app.py
Browse files
app.py
CHANGED
@@ -27,10 +27,10 @@ DEFAULT_WIDTH = 1024
|
|
27 |
|
28 |
REPO = "sd-community/sdxl-flash"
|
29 |
|
30 |
-
vae = AutoencoderKL.from_pretrained("
|
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)
|