SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.02733 · 2024

InstantStyle: Free Lunch towards Style-Preserving in Text-to-Image Generation

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 6 functions out of this paper's own repositories and ran 3 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
instantstyle/instantstyle canonical 3 of 6
FunctionStatusWhere it lives
FeedForward Ran instantstyle/instantstyle/ip_adapter/resampler.py
pointer only (licence: NONE) · get_code("5105747c2711b1cb")
masked_mean Ran instantstyle/instantstyle/ip_adapter/resampler.py
pointer only (licence: NONE) · get_code("230588e8f1237737")
reshape_tensor Ran instantstyle/instantstyle/ip_adapter/resampler.py
pointer only (licence: NONE) · get_code("4cb2e2a2ca0bec9f")
hook_fn Not yet run instantstyle/instantstyle/ip_adapter/utils.py
pointer only (licence: NONE) · get_code("06d3e795b3014ef1")
register_cross_attention_hook Not yet run instantstyle/instantstyle/ip_adapter/utils.py
pointer only (licence: NONE) · get_code("cf95fb65ebfe64b4")
upscale Not yet run instantstyle/instantstyle/ip_adapter/utils.py
pointer only (licence: NONE) · get_code("25837bff8f005465")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2404.02733")
get_code_for_paper("2404.02733")
have("2404.02733")

Connect an agent — have() is free.