AI 画图,开始自己写代码
AI 画图和 AI 做图表,过去是两套互不相干的本事:照片靠像素生成,图表、网页、文档靠写代码,所以同一张海报里,图很美、字却常常错。这套系统把两头接进同一个工作台:图像被压缩成离散「视觉词元」,图表、矢量图、网页、文档则直接写成可编辑的程序,生成、渲染、看结果、再修改,循环进行——同一个 30B 图像生成器,接上这套流程后,指令遵循评分从 31.71 提到 52.56。它不是你明天能用上的东西,但指向一个变化:视觉创作正在从「一次生成碰运气」变成「像改代码一样改图」。
📄 原文摘要(英文)
Visual creation demands expressive imagery together with precise control over text, layout, and structure. We introduce Nemotron-Labs-VisualCreation, an agentic framework that connects these capabilities through Pixel as Code. Raster images are represented by learned discrete visual tokens, while structured artifacts use explicit programs. A shared generation-and-rendering interface connects these representations to visual feedback across images, vector graphics, webpages, and documents. A Nemotron-native harness coordinates planning and raster candidate selection, with targeted repair for editable structured and hybrid artifacts. To support this interface, we develop Nemotron-Labs-Image-Tokenizer, the autoregressive raster generator Nemotron-Labs-Image-30B-A3B, and the structured-code model family Nemotron-Labs-VisionCode. On approximately 178K images spanning six visual domains, our tokenizer improves reconstruction PSNR from 26.08 to 29.57 dB over Emu3.5 IBQ. It also provides 7.13x faster encoding and 10.93x faster decoding at batch size one on A100. In standalone evaluation, one Nemotron-Labs-VisionCode variant surpasses Kimi K3.1 Pro on the aggregate across Chart2Code, MMSVG, Design2Code, and Image2Struct. At the system level, the Nemotron-native configuration raises GenEval2 Soft-TIFA GM from 31.71 to 52.56 using the same raster generator. With our best setting, Nemotron-Labs-VisualCreation achieves performance competitive with GPT Image 2 and Nano Banana Pro across most benchmarks with available comparisons.