Splicing ViT Features for Semantic Appearance Transfer
About
We present a method for semantically transferring the visual appearance of one natural image to another. Specifically, our goal is to generate an image in which objects in a source structure image are "painted" with the visual appearance of their semantically related objects in a target appearance image. Our method works by training a generator given only a single structure/appearance image pair as input. To integrate semantic information into our framework - a pivotal component in tackling this task - our key idea is to leverage a pre-trained and fixed Vision Transformer (ViT) model which serves as an external semantic prior. Specifically, we derive novel representations of structure and appearance extracted from deep ViT features, untwisting them from the learned self-attention modules. We then establish an objective function that splices the desired structure and appearance representations, interweaving them together in the space of ViT features. Our framework, which we term "Splice", does not involve adversarial training, nor does it require any additional input information such as semantic segmentation or correspondences, and can generate high-resolution results, e.g., work in HD. We demonstrate high quality results on a variety of in-the-wild image pairs, under significant variations in the number of objects, their pose and appearance.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Inference Efficiency | Inference Efficiency Evaluation | Inference Latency (s)1.56e+3 | 12 | |
| Structure and appearance control | Natural image | Self-similarity0.03 | 7 | |
| Structure and appearance control | ControlNet-supported | Self-sim0.043 | 7 | |
| Structure and appearance control | New condition | Self-sim0.037 | 7 | |
| Controllable Image Generation | User study (Amazon Mechanical Turk) | Result Quality95 | 6 | |
| Appearance Transfer | mountains | Preference Win Rate60.3 | 3 | |
| Appearance Transfer | AFHQ | Preference Rate71.8 | 3 | |
| Appearance Transfer | Wild-Pairs | Percentage Judgments In Favor83.1 | 2 |