SSR-Encoder: Encoding Selective Subject Representation for Subject-Driven Generation

Yuxuan Zhang, Jiaming Liu, Yiren Song, Rui Wang, Hao Tang +6 more
12/1/2023

No official code found. Best implementation: Xiaojiu-z/SSR_Encoder (129 stars, last commit 2024-07-22).

Abstract

Recent advancements in subject-driven image generation have led to zero-shot generation, yet precise selection and focus on crucial subject representations remain challenging. Addressing this, we introduce the SSR-Encoder, a novel architecture designed for selectively capturing any subject from single or multiple reference images. It responds to various query modalities including text and masks, without necessitating test-time fine-tuning. The SSR-Encoder combines a Token-to-Patch Aligner that aligns query inputs with image patches and a Detail-Preserving Subject Encoder for extracting and preserving fine features of the subjects, thereby generating subject embeddings. These embeddings, used in conjunction with original text embeddings, condition the generation process. Characterized by its model generalizability and efficiency, the SSR-Encoder adapts to a range of custom models and control modules. Enhanced by the Embedding Consistency Regularization Loss for improved training, our extensive experiments demonstrate its effectiveness in versatile and high-quality image generation, indicating its broad applicability. Project page: ssr-encoder.github.io

View on arXivView PDF

Code Implementations(1)

Pytorch Implementation of "SSR-Encoder: Encoding Selective Subject Representation for Subject-Driven Generation"(CVPR 2024)

12912Shell, PythonMar 25, 20242 years ago

Similar Papers

Cite this paper

@article{zhang2023ssrencoder,
  title  = {SSR-Encoder: Encoding Selective Subject Representation for Subject-Driven Generation},
  author = {Yuxuan Zhang and Jiaming Liu and Yiren Song and Rui Wang and Hao Tang and Jinpeng Yu and Huaxia Li and Xu Tang and Yao Hu and Han Pan and Zhongliang Jing},
  year   = {2023},
  eprint = {2312.16272},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2312.16272},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.16272.svg)](https://codeofpaper.com/paper/2312.16272)

Discussion