百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

res-adapter

> 编程语言
开源

[AAAI 2025] "ResAdapter: Domain Consistent Resolution Adapter for Diffusion Models" 的官方代码。

759 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

[AAAI 2025] "ResAdapter: Domain Consistent Resolution Adapter for Diffusion Models" 的官方代码。

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.

…

Download

Models

We have released all resadapter weights, you can download resadapter models from Huggingface. The following is our resadapter model card:

Models Parameters Resolution Range Ratio Range Links
resadapter_v2_sd1.5 0.9M 128 <= x <= 1024 0.28 <= r <= 3.5 Download
resadapter_v2_sdxl 0.5M 256 <= x <= 1536 0.28 <= r <= 3.5 Download
resadapter_v1_sd1.5 0.9M 128 <= x <= 1024 0.5 <= r <= 2 Download
resadapter_v1_sd1.5_extrapolation 0.9M 512 <= x <= 1024 0.5 <= r <= 2 Download
resadapter_v1_sd1.5_interpolation 0.9M 128 <= x <= 512 0.5 <= r <= 2 Download
resadapter_v1_sdxl 0.5M 256 <= x <= 1536 0.5 <= r <= 2 Download
resadapter_v1_sdxl_extrapolation 0.5M 1024 <= x <= 1536 0.5 <= r <= 2 Download
resadapter_v1_sdxl_interpolation 0.5M 256 <= x <= 1024 0.5 <= r <= 2 Download

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

ResAdapter with ControlNet for Image to Image

ResAdapter with ControlNet-XL for Image to Image

ResAdapter with IP-Adapter for Face Variance

ResAdapter with LCM-LoRA for Speeding up

Community Resource

Gradio

  • Replicate website: bytedance/res-adapter by (@Chenxi)
  • Huggingface space:
    • jiaxiangc/res-adapter (official space)
    • ameerazam08/Res-Adapter-GPU-Demo by (@Ameer Azam)

An text-to-image example about res-adapter in huggingface space. More information in jiaxiangc/res-adapter.

ComfyUI

  • jiaxiangc/ComfyUI-ResAdapter (official comfyui node)
  • blepping/ComfyUI-ApplyResAdapterUnet by (@blepping)

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:

# pip install peft, gradio, httpx==0.23.3
python app.py

Usage Tips

  1. If you are not satisfied with interpolation images, try to increase the alpha of resadapter to 1.0.
  2. If you are not satisfied with extrapolate images, try to choose the alpha of resadapter in 0.3 ~ 0.7.
  3. If you find the images with style conflicts, try to decrease the alpha of resadapter.
  4. If you find resadapter is not compatible with other accelerate lora, try to decrease the alpha of resadapter to 0.5 ~ 0.7.

Acknowledgements

  • ResAdapter is developed by AutoML Team at ByteDance Inc, all copyright reserved.
  • Thanks to the HuggingFace gradio team for their free GPU support!
  • Thanks to the IP-Adapter, ControlNet, LCM-LoRA for their nice work.
  • Thank @Chenxi and @AMEERAZAM08 to provide gradio demos.
  • Thank @fengyuzzz to support video demos in ComfyUI-ResAdapter.

Star History

Citation

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}
}

For any question, please feel free to contact us via [email protected] or [email protected].

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言