stack86 commited on
Commit
d41bb87
·
verified ·
1 Parent(s): b804099

Update app.py

Browse files

add weight_type

Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -20,6 +20,7 @@ if torch.cuda.is_available():
20
  # pipe.vae = AutoencoderKL.from_pretrained("IDKiro/sdxs-512-0.9/vae_large") # use original VAE
21
  pipe.to("cuda")
22
  else:
 
23
  pipe = StableDiffusionPipeline.from_pretrained(repo, torch_dtype=weight_type)
24
 
25
  # Function
 
20
  # pipe.vae = AutoencoderKL.from_pretrained("IDKiro/sdxs-512-0.9/vae_large") # use original VAE
21
  pipe.to("cuda")
22
  else:
23
+ weight_type = torch.float16
24
  pipe = StableDiffusionPipeline.from_pretrained(repo, torch_dtype=weight_type)
25
 
26
  # Function