ford442 commited on
Commit
13bad61
·
verified ·
1 Parent(s): 013ed3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -121,7 +121,7 @@ def load_and_prepare_model():
121
  pipe.safety_checker=None
122
  #pipe.unet.to(memory_format=torch.channels_last)
123
  #pipe.enable_vae_tiling()
124
- pipe.to(device=device)
125
  pipe.vae = vaeXL.to(device) #.to('cpu') #.to(torch.bfloat16)
126
 
127
  pipe.unet.set_attn_processor(AttnProcessor2_0())
 
121
  pipe.safety_checker=None
122
  #pipe.unet.to(memory_format=torch.channels_last)
123
  #pipe.enable_vae_tiling()
124
+ pipe.to(device=device, torch.bfloat16)
125
  pipe.vae = vaeXL.to(device) #.to('cpu') #.to(torch.bfloat16)
126
 
127
  pipe.unet.set_attn_processor(AttnProcessor2_0())