用向量量化表示笔画,生成更真实创意手绘图
VQ-SGen: A Vector Quantized Stroke Representation for Creative Sketch Generation
- 将每根笔画视为独立实体,用向量量化编码形状与位置
- 在CreativeSketch数据集上超越现有最佳方法,生成更精准笔画
- 支持文本或类别条件生成、草图补全等新应用
本文提出VQ-SGen,一种高质量创意手绘生成的新算法。现有方法多以像素为单位生成手绘,忽略笔画间内在和上下文关系(如形状与空间位置)。为此,我们把每根笔画当作独立实体,引入向量量化(VQ)笔画表示,实现细粒度生成。方法分两阶段:第一阶段解耦笔画形状与位置信息,确保VQ表示聚焦于形状学习;第二阶段将精确紧凑的表示输入自解码Transformer,融合笔画语义、位置与形状信息。通过标记化笔画表示,方法生成高保真笔画,支持文本或类别标签条件生成、草图补全等新应用。在CreativeSketch数据集上的实验表明,该方法优于现有最先进技术。
原文摘要 · Abstract (English)
This paper presents VQ-SGen, a novel algorithm for high-quality creative sketch generation. Recent approaches have framed the task as pixel-based generation either as a whole or part-by-part, neglecting the intrinsic and contextual relationships among individual strokes, such as the shape and spatial positioning of both proximal and distant strokes. To overcome these limitations, we propose treating each stroke within a sketch as an entity and introducing a vector-quantized (VQ) stroke representation for fine-grained sketch generation. Our method follows a two-stage framework - in stage one, we decouple each stroke's shape and location information to ensure the VQ representation prioritizes stroke shape learning. In stage two, we feed the precise and compact representation into an auto-decoding Transformer to incorporate stroke semantics, positions, and shapes into the generation process. By utilizing tokenized stroke representation, our approach generates strokes with high fidelity and facilitates novel applications, such as text or class label conditioned generation and sketch completion. Comprehensive experiments demonstrate our method surpasses existing state-of-the-art techniques on the CreativeSketch dataset, underscoring its effectiveness.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。