Skip to content

Commit 110698b

Browse files
junqiangwuyiyixuxu
andauthored
Update src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py
Co-authored-by: YiYi Xu <[email protected]>
1 parent dbdbd01 commit 110698b

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -406,34 +406,6 @@ def _encode_vae_image(self, image: torch.Tensor, generator: torch.Generator):
406406

407407
return image_latents
408408

409-
def enable_vae_slicing(self):
410-
r"""
411-
Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to
412-
compute decoding in several steps. This is useful to save some memory and allow larger batch sizes.
413-
"""
414-
self.vae.enable_slicing()
415-
416-
def disable_vae_slicing(self):
417-
r"""
418-
Disable sliced VAE decoding. If `enable_vae_slicing` was previously enabled, this method will go back to
419-
computing decoding in one step.
420-
"""
421-
self.vae.disable_slicing()
422-
423-
def enable_vae_tiling(self):
424-
r"""
425-
Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to
426-
compute decoding and encoding in several steps. This is useful for saving a large amount of memory and to allow
427-
processing larger images.
428-
"""
429-
self.vae.enable_tiling()
430-
431-
def disable_vae_tiling(self):
432-
r"""
433-
Disable tiled VAE decoding. If `enable_vae_tiling` was previously enabled, this method will go back to
434-
computing decoding in one step.
435-
"""
436-
self.vae.disable_tiling()
437409

438410
@property
439411
def guidance_scale(self):

0 commit comments

Comments
 (0)