nfig)
>>> pipe.enable_model_cpu_offload()

>>> # generate image
>>> image = pipe(
...     "a handsome man with ray-ban sunglasses",
...     num_inference_steps=20,
...     generator=generator,
...     eta=1.0,
...     image=init_image,
...     mask_image=mask_image,
...     control_image=control_image,
... ).images[0]  enable_attention_slicing  < source > ( slice_size: Union = 'auto'  )   Parameters   slice_size (str or int, optional, defaults 