n_guidance_amount=0.15,
... ).images

>>> images[0].save("edited_image_dog.png")

construct_direction

<
source
>
(
embs_source: Tensor
embs_target: Tensor

)



Constructs the edit direction to steer the image generation process semantically.

enable_model_cpu_offload

<
source
>
(
gpu_id = 0

)



Offloads all models to CPU using accelerate, reducing memory usage with a low impact on performance. Compared
to enable_sequential_cpu_offload, thi