.from_config(pipeline.scheduler.config)
>>> pipeline.scheduler = scheduler  maybe_free_model_hooks  < source > ( )    Function that offloads all components, 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