sergon19 commited on
Commit
b5f0ee3
Β·
verified Β·
1 Parent(s): 43d3c1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,12 +5,12 @@ import gradio as gr
5
  import torch
6
  from diffusers import DiffusionPipeline, AutoencoderKL
7
 
8
- vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
9
  pipe = DiffusionPipeline.from_pretrained(
10
  "stabilityai/stable-diffusion-xl-base-1.0",
11
  vae=vae,
12
- torch_dtype=torch.float16,
13
- variant="fp16",
14
  use_safetensors=True
15
  )
16
  pipe.load_lora_weights("sergon19/green_bg_LoRa10")
 
5
  import torch
6
  from diffusers import DiffusionPipeline, AutoencoderKL
7
 
8
+ vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float32)
9
  pipe = DiffusionPipeline.from_pretrained(
10
  "stabilityai/stable-diffusion-xl-base-1.0",
11
  vae=vae,
12
+ torch_dtype=torch.float32,
13
+ variant="fp32",
14
  use_safetensors=True
15
  )
16
  pipe.load_lora_weights("sergon19/green_bg_LoRa10")