_config(pipe.scheduler.config)
>>> pipe.enable_model_cpu_offload()

>>> # generate image
>>> generator = torch.manual_seed(0)
>>> image = pipe(
...     "futuristic-looking woman",
...     num_inference_steps=20,
...     generator=generator,
...     image=image,
...     control_image=canny_image,
... ).images[0]  enable_attention_slicing  < source > ( slice_size: Union = 'auto'  )   Parameters   slice_size (str or int, optional, defaults to "aut