ford442 commited on
Commit
e7801ef
·
verified ·
1 Parent(s): 4e43f2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -112,8 +112,7 @@ def load_and_prepare_model():
112
  #pipe.enable_vae_tiling()
113
  pipe.to(device=device, dtype=torch.bfloat16)
114
  pipe.unet.set_attn_processor(AttnProcessor2_0())
115
- #pipe.vae = vaeXL #.to('cpu') #.to(torch.bfloat16)
116
- pipe.vae = vaeXL.to(device=device, dtype=torch.bfloat16) # for non-offload
117
 
118
  pipe.vae.set_default_attn_processor()
119
  return pipe
 
112
  #pipe.enable_vae_tiling()
113
  pipe.to(device=device, dtype=torch.bfloat16)
114
  pipe.unet.set_attn_processor(AttnProcessor2_0())
115
+ pipe.vae = vaeXL #.to('cpu') #.to(torch.bfloat16)
 
116
 
117
  pipe.vae.set_default_attn_processor()
118
  return pipe