Fix `disable_attention_slicing` in pipelines (#498)

Fix `disable_attention_slicing` in pipelines.
This commit is contained in:
Pedro Cuenca 2022-09-13 14:25:22 +02:00 committed by GitHub
parent 721e017401
commit f7cd6b87e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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__(

View File

@ -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__(