erated image. Choose between
PIL: PIL.Image.Image or np.array.


return_dict (bool, optional, defaults to True) —
Whether or not to return a ImagePipelineOutput instead of a plain tuple.



Function invoked when calling the pipeline for generation.

enable_sequential_cpu_offload

<
source
>
(
gpu_id = 0

)



Offloads all models to CPU using accelerate, significantly reducing memory usage. When called, the pipeline’s
models have their state dic