Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -112,7 +112,7 @@ def load_and_prepare_model():
|
|
112 |
#pipe.unet.to(memory_format=torch.channels_last)
|
113 |
#pipe.enable_vae_tiling()
|
114 |
pipe.to(device=device, dtype=torch.bfloat16)
|
115 |
-
pipe.vae = vaeXL
|
116 |
|
117 |
pipe.unet.set_attn_processor(AttnProcessor2_0())
|
118 |
pipe.vae.set_default_attn_processor()
|
|
|
112 |
#pipe.unet.to(memory_format=torch.channels_last)
|
113 |
#pipe.enable_vae_tiling()
|
114 |
pipe.to(device=device, dtype=torch.bfloat16)
|
115 |
+
pipe.vae = vaeXL #.to(device) #.to('cpu') #.to(torch.bfloat16)
|
116 |
|
117 |
pipe.unet.set_attn_processor(AttnProcessor2_0())
|
118 |
pipe.vae.set_default_attn_processor()
|