Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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())
|