onding generated image likely represents "not-safe-for-work" (nsfw) content, according to the safety_checker`.


Function invoked when calling the pipeline for generation.

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
met