InstructAny2Pix: Flexible Visual Editing via Multimodal Instruction Following
Shufan Li, Harkanwar Singh, Aditya Grover
TL;DR
InstructAny2Pix introduces a flexible framework for editing images using multi-modal prompts that can interleave text, images, and audio. It combines a multi-modal encoder, a multi-modal LLM, and a diffusion-based decoder with a refinement module to generate high-fidelity edits, supported by MM-Inst and Dreambooth++ benchmarks. The approach demonstrates strong performance on complex multi-object edits and multi-modal tasks, including music-guided design, while maintaining competitive zero-shot results on traditional text-based edits. The work enables versatile applications in design and live visuals, though it notes biases and stylistic tendencies as important limitations to address in future work.
Abstract
The ability to provide fine-grained control for generating and editing visual imagery has profound implications for computer vision and its applications. Previous works have explored extending controllability in two directions: instruction tuning with text-based prompts and multi-modal conditioning. However, these works make one or more unnatural assumptions on the number and/or type of modality inputs used to express controllability. We propose InstructAny2Pix, a flexible multi-modal instruction-following system that enables users to edit an input image using instructions involving audio, images, and text. InstructAny2Pix consists of three building blocks that facilitate this capability: a multi-modal encoder that encodes different modalities such as images and audio into a unified latent space, a diffusion model that learns to decode representations in this latent space into images, and a multi-modal LLM that can understand instructions involving multiple images and audio pieces and generate a conditional embedding of the desired output, which can be used by the diffusion decoder. Additionally, to facilitate training efficiency and improve generation quality, we include an additional refinement prior module that enhances the visual quality of LLM outputs. These designs are critical to the performance of our system. We demonstrate that our system can perform a series of novel instruction-guided editing tasks. The code is available at https://github.com/jacklishufan/InstructAny2Pix.git
