CharacterFactory: Sampling Consistent Characters with GANs for Diffusion Models
Qinghe Wang, Baolu Li, Xiaomin Li, Bing Cao, Liqian Ma, Huchuan Lu, Xu Jia
TL;DR
CharacterFactory presents an end-to-end framework for sampling new identity-consistent characters within diffusion-model pipelines by learning an Identity-Embedding GAN (IDE-GAN) that maps latent codes to CLIP-based celebrity embeddings. A context-consistent loss enforces contextual stability of the generated embeddings, enabling seamless integration with diffusion models without re-training the diffusion backbone. The method achieves fast training (about 10 minutes) and fast inference (new identities in ~3 seconds), outperforming two-stage workflows in identity consistency, editability, and image quality while offering strong interpolation and cross-domain applicability to image/video/3D tasks. This approach enables scalable, controllable identity generation and dataset creation, with practical impact for virtual humans, storytelling, and media production, while maintaining compatibility with existing plug-ins like ControlNet, ModelScopeT2V, and LucidDreamer.
Abstract
Recent advances in text-to-image models have opened new frontiers in human-centric generation. However, these models cannot be directly employed to generate images with consistent newly coined identities. In this work, we propose CharacterFactory, a framework that allows sampling new characters with consistent identities in the latent space of GANs for diffusion models. More specifically, we consider the word embeddings of celeb names as ground truths for the identity-consistent generation task and train a GAN model to learn the mapping from a latent space to the celeb embedding space. In addition, we design a context-consistent loss to ensure that the generated identity embeddings can produce identity-consistent images in various contexts. Remarkably, the whole model only takes 10 minutes for training, and can sample infinite characters end-to-end during inference. Extensive experiments demonstrate excellent performance of the proposed CharacterFactory on character creation in terms of identity consistency and editability. Furthermore, the generated characters can be seamlessly combined with the off-the-shelf image/video/3D diffusion models. We believe that the proposed CharacterFactory is an important step for identity-consistent character generation. Project page is available at: https://qinghew.github.io/CharacterFactory/.
