From https://github.com/haha-lisa/RDM-Region-Aware-Diffusion-Model