Fix `disable_attention_slicing` in pipelines (#498)
Fix `disable_attention_slicing` in pipelines.
This commit is contained in:
parent
721e017401
commit
f7cd6b87e1
|
@ -99,7 +99,7 @@ class StableDiffusionImg2ImgPipeline(DiffusionPipeline):
|
|||
back to computing attention in one step.
|
||||
"""
|
||||
# set slice_size = `None` to disable `set_attention_slice`
|
||||
self.enable_attention_slice(None)
|
||||
self.enable_attention_slicing(None)
|
||||
|
||||
@torch.no_grad()
|
||||
def __call__(
|
||||
|
|
|
@ -118,7 +118,7 @@ class StableDiffusionInpaintPipeline(DiffusionPipeline):
|
|||
back to computing attention in one step.
|
||||
"""
|
||||
# set slice_size = `None` to disable `set_attention_slice`
|
||||
self.enable_attention_slice(None)
|
||||
self.enable_attention_slicing(None)
|
||||
|
||||
@torch.no_grad()
|
||||
def __call__(
|
||||
|
|
Loading…
Reference in New Issue