_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, this method moves one whole model at a time to the GPU when its forward
m