Asking for integrating HiDiffusion into diffusers

What does HiDiffusion do

project link; code link

Stable Diffusion can generate from 512x512 to 1024x1024 resolution images. When generating higher-resolution images(2048x2048 or 4096x4096 resolution) , it exhibits unreasonable object duplication and the efficiency is low.
HiDiffusion can solve this problem and increases the resolution and speed of diffusion models in a training-free way. It also surpass other higher-resolution methods.
Besides, HiDiffusion also supports controlnet and other tasks.

2048x2048 resolution images comparison

Describe the Integration

We want HiDiffusion to be integrated into the official code and documentation so that more people can access this feature.
HiDiffusion code is based on diffusers. It can be integrated into diffusers pipelines by only adding a single line of code!

pip3 install hidiffusion

and use it by adding a single line of code

apply_hidiffusion(pipeline)

Possibly add a pipeline._enable_hidiffusion?

The integration design ‘apply_hidiffusion(pipeline)’ is inspired from tomesd doc and deepcache doc.

Both ‘apply_hidiffusion(pipeline)’ and ‘pipeline._enable_hidiffusion’ serve the same function.