TokenFlow
TokenFlow is the official implementation of the unified image tokenizer published at CVPR 2025 by ByteDance ByteVisionLab, aiming to bridge the long-standing gap between multimodal understanding and image generation. It adopts an innovative dual-codebook architecture that decouples the learning of semantic features from pixel-level features while keeping the two aligned through a shared mapping mechanism. On multimodal understanding tasks, TokenFlow significantly surpasses flagship models such as LLaVA-1.5 and EMU3; on text-to-image generation tasks, it achieves performance comparable to SDXL at 256×256 resolution. The repository open-sources the checkpoints of the tokenizer, the text-to-image model, and the multimodal understanding model, and provides training and inference code, targeting researchers and developers in multimodal learning and generative AI.