nts, removes all model hooks that were added when using
enable_model_cpu_offload and then applies them again. In case the model has not been offloaded this function
is a no-op. Make sure to add this function to the end of the __call__ function of your pipeline so that it
functions correctly when applying enable_model_cpu_offload.  numpy_to_pil  < source > ( images  )    Convert a NumPy image or a batch of images to a PIL image.  save_pretrained