ResAdapter: Domain Consistent Resolution Adapter for Diffusion Models
Jiaxiang Cheng, Pan Xie*, Xin Xia, Jiashi Li, Jie Wu, Yuxi Ren, Huixia Li, Xuefeng Xiao, Min Zheng, Lean Fu (*Corresponding author)
ByteDance Inc.
⭐ If ResAdapter is helpful to your images or projects, please help star this repo. Thanks! 🤗
We propose ResAdapter, a plug-and-play resolution adapter for enabling any diffusion model generate resolution-free images: no additional training, no additional inference and no style transfer.
Hint1: We update the resadapter name format according to controlnet.
Hint2: If you want use resadapter with personalized diffusion models, you should download them from CivitAI.
Hint3: If you want use resadapter with ip-adapter, controlnet and lcm-lora, you should download them from Huggingface.
Hint4: Here is an installation guidance for preparing environment and downloading models.
Inference
If you want generate images in our inference script, you should install dependency libraries and download related models according to installation guidance. After filling in example configs, you can directly run this script.
python main.py --config /path/to/file
ResAdapter with Personalized Models for Text to Image
Comparison examples (960x1104) between resadapter and dreamshaper-7. Top: with resadapter. Bottom: without resadapter.
ResAdapter with ControlNet for Image to Image
Comparison examples (840x1264) between resadapter and lllyasviel/sd-controlnet-canny. Top: with resadapter, bottom: without resadapter.
If you find ResAdapter useful for your research and applications, please cite us using this BibTeX:
@inproceedings{cheng2025resadapter,
title={Resadapter: Domain consistent resolution adapter for diffusion models},
author={Cheng, Jiaxiang and Xie, Pan and Xia, Xin and Li, Jiashi and Wu, Jie and Ren, Yuxi and Li, Huixia and Xiao, Xuefeng and Wen, Shilei and Fu, Lean},
booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
volume={39},
number={3},
pages={2438--2446},
year={2025}
}
ResAdapter: Domain Consistent Resolution Adapter for Diffusion Models
Jiaxiang Cheng, Pan Xie*, Xin Xia, Jiashi Li, Jie Wu, Yuxi Ren, Huixia Li, Xuefeng Xiao, Min Zheng, Lean Fu (*Corresponding author)
ByteDance Inc.
⭐ If ResAdapter is helpful to your images or projects, please help star this repo. Thanks! 🤗
We propose ResAdapter, a plug-and-play resolution adapter for enabling any diffusion model generate resolution-free images: no additional training, no additional inference and no style transfer.
Release
[2024/12/10]🎉 ResAdapter is accepted by AAAI 2025.[2024/04/07]🔥 We release the official gradio space in Huggingface.[2024/04/05]🔥 We release the resadapter_v2 weights.[2024/03/30]🔥 We release the ComfyUI-ResAdapter.[2024/03/28]🔥 We release the resadapter_v1 weights.[2024/03/04]🔥 We release the arxiv paper.Quicktour
We provide a standalone example code to help you quickly use resadapter with diffusion models.
Comparison examples (640x384) between resadapter and dreamshaper-xl-1.0. Top: with resadapter. Bottom: without resadapter.
Download
Models
We have released all resadapter weights, you can download resadapter models from Huggingface. The following is our resadapter model card:
Hint1: We update the resadapter name format according to controlnet.
Hint2: If you want use resadapter with personalized diffusion models, you should download them from CivitAI.
Hint3: If you want use resadapter with ip-adapter, controlnet and lcm-lora, you should download them from Huggingface.
Hint4: Here is an installation guidance for preparing environment and downloading models.
Inference
If you want generate images in our inference script, you should install dependency libraries and download related models according to installation guidance. After filling in example configs, you can directly run this script.
ResAdapter with Personalized Models for Text to Image
Comparison examples (960x1104) between resadapter and dreamshaper-7. Top: with resadapter. Bottom: without resadapter.
ResAdapter with ControlNet for Image to Image
Comparison examples (840x1264) between resadapter and lllyasviel/sd-controlnet-canny. Top: with resadapter, bottom: without resadapter.
ResAdapter with ControlNet-XL for Image to Image
Comparison examples (336x504) between resadapter and diffusers/controlnet-canny-sdxl-1.0. Top: with resadapter, bottom: without resadapter.
ResAdapter with IP-Adapter for Face Variance
Comparison examples (864x1024) between resadapter and h94/IP-Adapter. Top: with resadapter, bottom: without resadapter.
ResAdapter with LCM-LoRA for Speeding up
Comparison examples (512x512) between resadapter and dreamshaper-xl-1.0 with lcm-sdxl-lora. Top: with resadapter, bottom: without resadapter.
Community Resource
Gradio
An text-to-image example about res-adapter in huggingface space. More information in jiaxiangc/res-adapter.
ComfyUI
An text-to image example about ComfyUI-ResAdapter. More examples about lcm-lora, controlnet and ipadapter can be found in ComfyUI-ResAdapter.
https://github.com/jiaxiangc/ComfyUI-ResAdapter/assets/162297627/82453931-23de-4f72-8a9c-1053c4c8d81a
WebUI
I am learning how to make webui extension.
Local Gradio Demo
Run the following script:
Usage Tips
Acknowledgements
Star History
Citation
If you find ResAdapter useful for your research and applications, please cite us using this BibTeX:
For any question, please feel free to contact us via jiaxiangcc@gmail.com or xiepan.01@bytedance.com.