Zyrenth commited on
Commit
deff1bd
·
verified ·
1 Parent(s): c018f93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,11 +15,11 @@ MAX_IMG_SIZE = 4096
15
 
16
  device = torch.device("cpu")
17
 
18
- vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
19
  pipe = DiffusionPipeline.from_pretrained(
20
  "stabilityai/stable-diffusion-xl-base-1.0",
21
  vae=vae,
22
- torch_dtype=torch.float16,
23
  use_safetensors=True,
24
  variant="fp16",
25
  )
 
15
 
16
  device = torch.device("cpu")
17
 
18
+ vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float32)
19
  pipe = DiffusionPipeline.from_pretrained(
20
  "stabilityai/stable-diffusion-xl-base-1.0",
21
  vae=vae,
22
+ torch_dtype=torch.float32,
23
  use_safetensors=True,
24
  variant="fp16",
25
  )