用可微分生成器实现任意尺寸像素画自动生成
SD-$π$XL: Generating Low-Resolution Quantized Imagery via Score Distillation
- 通过可微分软最大值实现像素级颜色分布优化
- 支持任意分辨率与颜色数,生成效果优于现有方法
- 适合游戏美术、手工设计等需要简化配色的场景
低分辨率量化图像(如像素艺术)在现代应用中日益流行,涵盖游戏图形、数字设计与制造等领域,其创作常受限于有限的元素色彩。尽管如此,从原始输入自动生成量化图像仍具挑战性,通常需大量人工干预。我们提出SD-πXL,一种结合分数蒸馏采样与可微分图像生成器的方法。用户可输入提示词或参考图像,设定任意输出尺寸$H \times W$,并选择包含$n$种颜色的调色板。每种颜色对应生成器的一个类别,模型在$H \times W \times n$张量上运行,采用软最大值计算凸组合,使过程可微且支持反向传播。实验表明,使用Gumbel-softmax重参数化可获得清晰的像素艺术效果。本方法独特之处在于能将输入图像转化为保留关键语义特征的低分辨率量化版本。结果验证了其生成视觉优美且忠实的性能,持续超越当前最先进水平。此外,我们在拼接积木马赛克、珠饰与刺绣设计中展示了该方法在制造中的实际应用价值。
原文摘要 · Abstract (English)
Low-resolution quantized imagery, such as pixel art, is seeing a revival in modern applications ranging from video game graphics to digital design and fabrication, where creativity is often bound by a limited palette of elemental units. Despite their growing popularity, the automated generation of quantized images from raw inputs remains a significant challenge, often necessitating intensive manual input. We introduce SD-$π$XL, an approach for producing quantized images that employs score distillation sampling in conjunction with a differentiable image generator. Our method enables users to input a prompt and optionally an image for spatial conditioning, set any desired output size $H \times W$, and choose a palette of $n$ colors or elements. Each color corresponds to a distinct class for our generator, which operates on an $H \times W \times n$ tensor. We adopt a softmax approach, computing a convex sum of elements, thus rendering the process differentiable and amenable to backpropagation. We show that employing Gumbel-softmax reparameterization allows for crisp pixel art effects. Unique to our method is the ability to transform input images into low-resolution, quantized versions while retaining their key semantic features. Our experiments validate SD-$π$XL's performance in creating visually pleasing and faithful representations, consistently outperforming the current state-of-the-art. Furthermore, we showcase SD-$π$XL's practical utility in fabrication through its applications in interlocking brick mosaic, beading and embroidery design.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。