Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ pipe.fuse_lora(fuse_unet=True,fuse_text_encoder=False)
|
|
12 |
##pipe = accelerator.prepare(pipe.unet.load_attn_procs("./", weight_name="SDXL_FILM_PHOTOGRAPHY_STYLE_BetaV0.4.safetensors"))
|
13 |
##pipe.scheduler = accelerator.prepare(EulerDiscreteScheduler.from_config(pipe.scheduler.config))
|
14 |
##pipe.unet.to(memory_format=torch.channels_last)
|
15 |
-
|
16 |
apol=[]
|
17 |
def plex(prompt,neg_prompt,stips,nut):
|
18 |
apol=[]
|
|
|
12 |
##pipe = accelerator.prepare(pipe.unet.load_attn_procs("./", weight_name="SDXL_FILM_PHOTOGRAPHY_STYLE_BetaV0.4.safetensors"))
|
13 |
##pipe.scheduler = accelerator.prepare(EulerDiscreteScheduler.from_config(pipe.scheduler.config))
|
14 |
##pipe.unet.to(memory_format=torch.channels_last)
|
15 |
+
accelerator.prepare(pipe.to("cpu"))
|
16 |
apol=[]
|
17 |
def plex(prompt,neg_prompt,stips,nut):
|
18 |
apol=[]
|