[Arxiv 2024] - ROICtrl: Boosting Instance Control for Visual Generation
Yuchao Gu,
Yipin Zhou,
Yunfan Ye,
Yixin Nie,
Licheng Yu
Pingchuan Ma,
Kevin Qinghong Lin,
Mike Zheng Shou
Showlab, National University of Singapore; GenAI, Meta; MIT
ROICtrl can extend existing diffusion models and their add-ons (e.g., ControlNet, T2I-Adapter, IP-Adapter, ED-LoRA) to support controllable multi-instance generation.
Natural language often struggles to accurately associate positional and attribute information with multiple instances, which limits current text-based visual generation models to simpler compositions featuring only a few dominant instances. To address this limitation, this work enhances diffusion models by introducing regional instance control, where each instance is governed by a bounding box paired with a free-form caption. Previous methods in this area typically rely on implicit position encoding or explicit attention masks to separate regions of interest (ROIs), resulting in either inaccurate coordinate injection or large computational overhead. Inspired by ROI-Align in object detection, we introduce a complementary operation called ROI-Unpool. Together, ROI-Align and ROI-Unpool enable explicit, efficient, and accurate ROI manipulation on high-resolution feature maps for visual generation. Building on ROI-Unpool, we propose ROICtrl, an adapter for pretrained diffusion models that enables precise regional instance control. ROICtrl is compatible with community-finetuned diffusion models, as well as with existing spatial-based add-ons (\eg, ControlNet, T2I-Adapter) and embedding-based add-ons (\eg, IP-Adapter, ED-LoRA), extending their applications to multi-instance generation. Experiments show that ROICtrl achieves superior performance in regional instance control while significantly reducing computational costs.
For more see the project webpage.
- Training code will released in two weeks.
- [2024/12/10] Inference demo and model released.
[Standalone Operation Test] - ROI-Unpool
[Application] - Use ROICtrl with various community-finetuned models.
[Application] - Use ROICtrl with spatial-based addons (T2I-Adapter, ControlNet).
[Application] - Use ROICtrl with embedding-based addons (ED-LoRA , IP-Adapter ).
[Application] - Continuous generation with local change.
This repository is a re-implementation of ROICtrl conducted by the first author during his time at NUS. The goal of this repository is to replicate the original paper's findings and results, primarily for academic and research purposes.
If you find this repository useful in your work, consider citing the following papers:
@article{gu2024roictrl,
title={ROICtrl: Boosting Instance Control for Visual Generation},
author={Gu, Yuchao and Zhou, Yipin and Ye, Yunfan and Nie, Yixin and Yu, Licheng and Ma, Pingchuan and Lin, Kevin Qinghong and Shou, Mike Zheng},
journal={arXiv preprint arXiv:2411.17949},
year={2024}
}
@article{gu2024mix,
title={Mix-of-show: Decentralized low-rank adaptation for multi-concept customization of diffusion models},
author={Gu, Yuchao and Wang, Xintao and Wu, Jay Zhangjie and Shi, Yujun and Chen, Yunpeng and Fan, Zihan and Xiao, Wuyou and Zhao, Rui and Chang, Shuning and Wu, Weijia and others},
journal={Advances in Neural Information Processing Systems},
volume={36},
year={2024}
}