Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -106,7 +106,6 @@ def load_and_prepare_model():
|
|
106 |
#pipe.vae.vae_scale_factor=8
|
107 |
#pipe.to(device)
|
108 |
#pipe.to(torch.bfloat16)
|
109 |
-
pipe.vae.set_default_attn_processor()
|
110 |
print(f'init noise scale: {pipe.scheduler.init_noise_sigma}')
|
111 |
pipe.watermark=None
|
112 |
pipe.safety_checker=None
|
@@ -114,8 +113,8 @@ def load_and_prepare_model():
|
|
114 |
#pipe.enable_vae_tiling()
|
115 |
pipe.to(device=device, dtype=torch.bfloat16)
|
116 |
pipe.unet.set_attn_processor(AttnProcessor2_0())
|
117 |
-
|
118 |
pipe.vae = vaeXL.to('cpu') #.to(torch.bfloat16)
|
|
|
119 |
return pipe
|
120 |
|
121 |
pipe = load_and_prepare_model()
|
|
|
106 |
#pipe.vae.vae_scale_factor=8
|
107 |
#pipe.to(device)
|
108 |
#pipe.to(torch.bfloat16)
|
|
|
109 |
print(f'init noise scale: {pipe.scheduler.init_noise_sigma}')
|
110 |
pipe.watermark=None
|
111 |
pipe.safety_checker=None
|
|
|
113 |
#pipe.enable_vae_tiling()
|
114 |
pipe.to(device=device, dtype=torch.bfloat16)
|
115 |
pipe.unet.set_attn_processor(AttnProcessor2_0())
|
|
|
116 |
pipe.vae = vaeXL.to('cpu') #.to(torch.bfloat16)
|
117 |
+
pipe.vae.set_default_attn_processor()
|
118 |
return pipe
|
119 |
|
120 |
pipe = load_and_prepare_model()
|