forked from extern/easydiffusion
Hotfix for #1701 - run disable VAE tiling only on pipelines that support it
This commit is contained in:
parent
e77629c525
commit
85eaa305cc
@ -279,9 +279,11 @@ def generate_images_internal(
|
|||||||
delattr(pipe.unet, "_allocate_trt_buffers")
|
delattr(pipe.unet, "_allocate_trt_buffers")
|
||||||
|
|
||||||
if task_data.enable_vae_tiling:
|
if task_data.enable_vae_tiling:
|
||||||
pipe.enable_vae_tiling()
|
if hasattr(pipe, "enable_vae_tiling"):
|
||||||
|
pipe.enable_vae_tiling()
|
||||||
else:
|
else:
|
||||||
pipe.disable_vae_tiling()
|
if hasattr(pipe, "disable_vae_tiling"):
|
||||||
|
pipe.disable_vae_tiling()
|
||||||
|
|
||||||
images = generate_images(context, callback=callback, **req.dict())
|
images = generate_images(context, callback=callback, **req.dict())
|
||||||
user_stopped = False
|
user_stopped = False
|
||||||
|
Loading…
Reference in New Issue
Block a user