DreamOmni2: Multimodal Instruction-based Editing and Generation
Bin Xia, Bohao Peng, Yuechen Zhang, Junjia Huang, Jiyang Liu, Jingyao Li, Haoru Tan, Sitong Wu, Chengyao Wang, Yitong Wang, Xinglong Wu, Bei Yu, Jiaya Jia
TL;DR
DreamOmni2 addresses the limitations of instruction-only editing and subject-driven generation by introducing multimodal instruction-based editing and generation tasks that support both text and image instructions for concrete and abstract concepts. It presents a three-stage data synthesis pipeline using feature mixing to create extraction data, training an extraction model to generate reference images, and producing training data for editing and generation; concurrently, it proposes a DreamOmni2 framework with index encoding and position encoding shifts and joint training with a vision-language model. A new benchmark based on real images evaluates editing and generation with multiple reference images, including abstract attributions. Experimental results show DreamOmni2 achieves state-of-the-art performance against open-source baselines and approaches commercial models, with ablations confirming the value of the encoding schemes and joint training. The work paves the way for practical, flexible multimodal content creation tools and provides datasets and benchmarks for further research.
Abstract
Recent advancements in instruction-based image editing and subject-driven generation have garnered significant attention, yet both tasks still face limitations in meeting practical user needs. Instruction-based editing relies solely on language instructions, which often fail to capture specific editing details, making reference images necessary. Meanwhile, subject-driven generation is limited to combining concrete objects or people, overlooking broader, abstract concepts. To address these challenges, we propose two novel tasks: multimodal instruction-based editing and generation. These tasks support both text and image instructions and extend the scope to include both concrete and abstract concepts, greatly enhancing their practical applications. We introduce DreamOmni2, tackling two primary challenges: data creation and model framework design. Our data synthesis pipeline consists of three steps: (1) using a feature mixing method to create extraction data for both abstract and concrete concepts, (2) generating multimodal instruction-based editing training data using the editing and extraction models, and (3) further applying the extraction model to create training data for multimodal instruction-based editing. For the framework, to handle multi-image input, we propose an index encoding and position encoding shift scheme, which helps the model distinguish images and avoid pixel confusion. Additionally, we introduce joint training with the VLM and our generation/editing model to better process complex instructions. In addition, we have proposed comprehensive benchmarks for these two new tasks to drive their development. Experiments show that DreamOmni2 has achieved impressive results. Models and codes will be released.
