InstantStyle: Free Lunch towards Style-Preserving in Text-to-Image Generation
About
Tuning-free diffusion-based models have demonstrated significant potential in the realm of image personalization and customization. However, despite this notable progress, current models continue to grapple with several complex challenges in producing style-consistent image generation. Firstly, the concept of style is inherently underdetermined, encompassing a multitude of elements such as color, material, atmosphere, design, and structure, among others. Secondly, inversion-based methods are prone to style degradation, often resulting in the loss of fine-grained details. Lastly, adapter-based approaches frequently require meticulous weight tuning for each reference image to achieve a balance between style intensity and text controllability. In this paper, we commence by examining several compelling yet frequently overlooked observations. We then proceed to introduce InstantStyle, a framework designed to address these issues through the implementation of two key strategies: 1) A straightforward mechanism that decouples style and content from reference images within the feature space, predicated on the assumption that features within the same space can be either added to or subtracted from one another. 2) The injection of reference image features exclusively into style-specific blocks, thereby preventing style leaks and eschewing the need for cumbersome weight tuning, which often characterizes more parameter-heavy designs.Our work demonstrates superior visual stylization outcomes, striking an optimal balance between the intensity of style and the controllability of textual elements. Our codes will be available at https://github.com/InstantStyle/InstantStyle.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Style Transfer | MS-COCO (content) + WikiArt (style) (test) | LPIPS0.584 | 31 | |
| Image Style Transfer | User Study | Overall Quality Score71.2 | 30 | |
| Photo-realistic transfer | MSCOCO | FID (Style)23.051 | 11 | |
| Artistic transfer | WikiArt | FID (Style)21.413 | 11 | |
| Style Transfer | CIFAR-100 and InstaStyle (test) | Content Score28 | 9 | |
| Style Transfer | User Study 10 content images, 8 style images (test) | Style Score0.2 | 9 | |
| Text-driven Style Transfer | Benchmark of 52 prompts and 20 style images 1.0 (test) | Text Alignment0.229 | 8 | |
| Style Transfer | Style-Content Pairs 50 style x 40 content references (test) | CSD Score0.397 | 8 | |
| Preference-conditioned image generation | Pick-a-Pic processed | FID189.4 | 7 | |
| Preference-conditioned image generation | PREFBENCH | FID162.2 | 7 |