Skywalker0410 commited on
Commit
58c4a63
·
verified ·
1 Parent(s): ee58d1a

Align the bilingual model card with the CodingDINO arXiv paper

Browse files
Files changed (1) hide show
  1. README.md +36 -24
README.md CHANGED
@@ -38,9 +38,9 @@ inference: false
38
 
39
  ### Description
40
 
41
- CodingDINO is a 27B vision-language model that reconstructs an image or video as an executable program. Give it a diagram and it can draw an editable SVG. Give it a video and it can write a single program that describes the objects and their motion across frames. In the paper, changing one line of a generated Three.js scene raises the camera over a freeway while the vehicles continue along their paths.
42
 
43
- The same checkpoint supports two ways of generating code. **CodingDINO-Single** writes a first draft directly from the input. **CodingDINO** can run that draft, inspect the render and revise it. Across six benchmarks, the interactive model ranks first on **10 of 12** headline metrics. Averaged over those metrics, the first draft retains **85.4%** of the interactive score.
44
 
45
  ### Demo Videos
46
 
@@ -68,7 +68,9 @@ CodingDINO is released under [Apache 2.0](LICENSE). The [original base-model lic
68
 
69
  ## Model Architecture
70
 
71
- This release contains the Qwen3.8-27B policy after 65 steps of agentic RL. The checkpoint uses the Transformers class `Qwen3_5ForConditionalGeneration`. After supervised fine-tuning on verified programs, the model trains with GRPO inside a visual coding environment. A submitted program earns a reward from how closely its rendered views match the target, using DINO features. Three.js and Blender tasks also use relative depth. For video, the comparison spans matched timestamps.
 
 
72
 
73
  <p align="center"><img src="https://huggingface.co/Skywalker0410/CodingDINO/resolve/main/assets/framework.png" width="100%" alt="Visual coding environment and agentic reinforcement learning" /></p>
74
 
@@ -76,8 +78,8 @@ This release contains the Qwen3.8-27B policy after 65 steps of agentic RL. The c
76
 
77
  | Input | What you receive |
78
  | --- | --- |
79
- | Image and a request for an output format | Editable source, such as an SVG diagram, HTML page, Three.js scene or Blender script. A single chat request returns the proposed source in the assistant message. |
80
- | Image or video passed to the harness | A validated entry file and any supporting source under `submitted/` on successful submission. The run also writes `result.json` and the interaction history in `episode/`. |
81
 
82
  <a id="start-en"></a>
83
 
@@ -157,7 +159,7 @@ with urlopen(request, timeout=600) as response:
157
 
158
  The index maps the model parameters to 18 weight shards and one frozen MTP file. The additional tensor file in `native-gdn/` supplies the evaluated worker with the native normalization weights. Serve the directory containing `config.json`.
159
 
160
- The published run used a 262,144-token context and a dedicated vLLM worker on four H800s per replica. The worker restores 48 native BF16 Gated DeltaNet normalization tensors from `native-gdn/` and checks their fingerprints. The frozen MTP weights provide three speculative tokens. To use the same configuration, stop the standard server, activate the matching vLLM environment and set the three local paths below.
161
 
162
  Set `MODEL_DIR` to the downloaded checkpoint, `CODE_REPO` to the code checkout that provides `Mix60BenchWorker`, and `LEARNER_PYTHON` to the interpreter containing the matching FLA and Transformer Engine kernels. The launcher points `V2C_MIX60_EXPORT_ROOT` at the native tensors and explicitly selects checkpoint step `65`.
163
 
@@ -209,6 +211,8 @@ Each GPU worker writes a load receipt under `V2C_EVALUATION_ROOT`. [Native tenso
209
 
210
  ### Run the rendering harness
211
 
 
 
212
  With the 262,144-token endpoint running, use the client environment in a second terminal. Set `CODE_REPO` to the code checkout. Copy `vision2code_harness_v1.yaml`, point `context_tokenizer` at the checkpoint and set `shell_base` and the renderer paths for your output format. The examples reconstruct a PNG as SVG and a video as a Three.js scene. [Harness configuration](https://github.com/Skywalker-yqz/CodingDINO/tree/HEAD/research/vision2code_agentic_rl/configs/harness)
213
 
214
  <details>
@@ -239,18 +243,20 @@ HARNESS_CONFIG=/absolute/path/to/your-harness.yaml
239
 
240
  ## Evaluation
241
 
242
- The six-benchmark logs record the step-65 checkpoint running interactively with Vision2Code Harness v1.1 at `xhigh` reasoning effort. It produced 1,550 submissions for 1,555 available inputs. The standalone examples above use the public v1 client. The published run used v1.1 rendering, context compaction and submission rules, with up to 12 renders per task.
243
-
244
- The evaluation client allowed 20,480 output tokens per turn, including a 4,096-token thinking budget. Sampling used temperature 0.6 and top-p 0.95. Inspect an individual submission by matching its `sample_id` in the sample scores and event logs.
245
 
246
  | Benchmark | Reconstruction task |
247
  | --- | --- |
248
  | [3DHarnessBench](https://huggingface.co/datasets/lingada/3DHarnessBench) | Single view → Blender scene |
249
  | [CC-HARD](https://huggingface.co/datasets/xcodemind/CC-HARD) | Web screenshot → HTML |
250
  | [VFIG-Bench](https://huggingface.co/datasets/QijiaHe/VFIG-Bench) | Scientific figure → SVG |
251
- | [DrawAI-Bench Lite](https://huggingface.co/datasets/caopu/DrawAI-Bench-Lite) | Diagram → editable SVG |
252
  | [AnimWeb-Bench](https://github.com/starry1001/AnimWeb) | Reference animation → animated web page |
253
- | [Code2Video-Compass (V2V)](https://github.com/code2video-compass/Code2Video-Compass) | Video → animation code |
 
 
 
 
254
 
255
  Per-sample scores and event logs: [Hugging Face](https://huggingface.co/Skywalker0410/CodingDINO-evallog) · [ModelScope](https://www.modelscope.ai/models/Skywalker0410/CodingDINO-evallog) (coming soon).
256
 
@@ -258,7 +264,7 @@ Per-sample scores and event logs: [Hugging Face](https://huggingface.co/Skywalke
258
 
259
  ### Editable Scenes
260
 
261
- The paper changes one line in each reconstructed scene to move the camera, widen a carton or keep one horse in a field. In the carton example, the robot continues along its original path as it carries the wider box.
262
 
263
  <p align="center"><img src="https://huggingface.co/Skywalker0410/CodingDINO/resolve/main/assets/editable-scenes.png" width="100%" alt="Original and edited Three.js renders at matching timestamps" /></p>
264
 
@@ -288,9 +294,9 @@ The paper changes one line in each reconstructed scene to move the camera, widen
288
 
289
  ### 模型介绍
290
 
291
- CodingDINO 是一个 27B 视觉语言模型,能把图像或视频重建为可执行程序。输入一张示意图,它可以画出可编辑的 SVG;输入一段视频,它可以用同一份程序描述各帧中的物体及其运动。论文中有一个例子:只改生成的 Three.js 程序里的一行代码,就能升高高速公路上方的摄像机,同时保留车辆原有的运动轨迹。
292
 
293
- 同一份权重支持两种推理方式。**CodingDINO-Single** 直接根据输入写出初稿。**CodingDINO** 可以运行初稿、查看渲染结果,再修改程序。在六个基准上,交互式推理在 12 项主要指标中有 **10 项排名第一**。按指标分别计算再取平均,单轮初稿保留了多轮成绩的 **85.4%**。
294
 
295
  ### 演示视频
296
 
@@ -318,7 +324,9 @@ CodingDINO 以 [Apache 2.0](LICENSE) 发布。仓库随附[底座模型的原始
318
 
319
  ## 模型架构
320
 
321
- 本仓库提供以 Qwen3.8-27B 为底座、经过 65 步智能体强化学习的权重,使用 Transformers 的 `Qwen3_5ForConditionalGeneration` 类加载。模型先在经过验证的程序上做监督微调,再在视觉编程环境中通过 GRPO 学习。提交的程序经过渲染后,系统比较渲染视图与目标的 DINO 特征,Three.js 和 Blender 任务还会比较相对深度。对视频,奖励取各对应时间点得分的均值。
 
 
322
 
323
  <p align="center"><img src="https://huggingface.co/Skywalker0410/CodingDINO/resolve/main/assets/framework.png" width="100%" alt="视觉编程环境与智能体强化学习" /></p>
324
 
@@ -326,8 +334,8 @@ CodingDINO 以 [Apache 2.0](LICENSE) 发布。仓库随附[底座模型的原始
326
 
327
  | 输入 | 输出 |
328
  | --- | --- |
329
- | 图像和指定输出格式的指令 | 可编辑源码,例如 SVG 图表、HTML 网页、Three.js 场景或 Blender 脚本。单次请求返回的候选源码可从助手回复中读取。 |
330
- | 传给交互环境的图像或视频 | 成功提交后,可在 `submitted/` 下找到已验证的入口文件及配套源码。运行结果写入 `result.json`,交互记录在 `episode/`。 |
331
 
332
  <a id="start-zh"></a>
333
 
@@ -407,7 +415,7 @@ with urlopen(request, timeout=600) as response:
407
 
408
  索引将模型参数映射到 18 个权重分片和 1 个冻结的 MTP 文件。`native-gdn/` 单独提供评测 worker 所需的原生归一化权重。启动时,模型路径应指向含 `config.json` 的目录。
409
 
410
- 论文评测每个服务副本使用四张 H800、262,144 token 上下文和专用的 vLLM worker。worker 从 `native-gdn/` 恢复 48 个 BF16 Gated DeltaNet 归一化张量,并逐个核对指纹。冻结的 MTP 权重用于每步提出三个推测 token。要使用相同配置,先停止上面的标准服务,激活匹配的 vLLM 环境,再填写下方三个本地路径。
411
 
412
  将 `MODEL_DIR` 设为下载的权重目录,`CODE_REPO` 设为提供 `Mix60BenchWorker` 的代码仓库,`LEARNER_PYTHON` 设为含匹配版本 FLA 和 Transformer Engine 的 Python 解释器。启动命令将 `V2C_MIX60_EXPORT_ROOT` 指向原生张量目录,并显式指定检查点步数 `65`。
413
 
@@ -459,6 +467,8 @@ python -m vllm.entrypoints.openai.api_server \
459
 
460
  ### 运行交互式渲染
461
 
 
 
462
  保持 262,144 token 服务运行,在另一终端进入客户端环境,将 `CODE_REPO` 指向代码仓库。复制 `vision2code_harness_v1.yaml`,将 `context_tokenizer` 指向权重目录,再配置 `shell_base` 和对应输出格式的渲染器路径。下面两个例子分别把 PNG 重建为 SVG,把视频重建为 Three.js 场景。[交互环境配置](https://github.com/Skywalker-yqz/CodingDINO/tree/HEAD/research/vision2code_agentic_rl/configs/harness)
463
 
464
  <details>
@@ -489,18 +499,20 @@ HARNESS_CONFIG=/absolute/path/to/your-harness.yaml
489
 
490
  ## 评测
491
 
492
- 六项基准的日志记录了第 65 步权重在 Vision2Code Harness v1.1 下的交互式评测,推理强度为 `xhigh`。1,555 个有输入的任务中,模型提交了 1,550 份结果。上方独立推理示例使用公开的 v1 客户端;论文评测采用 v1.1 的渲染、上下文压缩与提交规则,每个任务最多渲染 12 次。
493
-
494
- 评测客户端每轮最多输出 20,480 token,其中思考预算为 4,096 token。采样温度为 0.6,top-p 为 0.95。要查看某次提交,可用同一个 `sample_id` 对照样本分数和交互记录。
495
 
496
  | 基准 | 重建任务 |
497
  | --- | --- |
498
  | [3DHarnessBench](https://huggingface.co/datasets/lingada/3DHarnessBench) | 单视图 → Blender 场景 |
499
  | [CC-HARD](https://huggingface.co/datasets/xcodemind/CC-HARD) | 网页截图 → HTML |
500
  | [VFIG-Bench](https://huggingface.co/datasets/QijiaHe/VFIG-Bench) | 科研图表 → SVG |
501
- | [DrawAI-Bench Lite](https://huggingface.co/datasets/caopu/DrawAI-Bench-Lite) | 示意图 → 可编辑 SVG |
502
  | [AnimWeb-Bench](https://github.com/starry1001/AnimWeb) | 参考动画 → 网页动画 |
503
- | [Code2Video-Compass (V2V)](https://github.com/code2video-compass/Code2Video-Compass) | 视频 → 动画代码 |
 
 
 
 
504
 
505
  逐样本分数与运行日志:[Hugging Face](https://huggingface.co/Skywalker0410/CodingDINO-evallog) · [ModelScope](https://www.modelscope.ai/models/Skywalker0410/CodingDINO-evallog)(待发布)。
506
 
@@ -508,6 +520,6 @@ HARNESS_CONFIG=/absolute/path/to/your-harness.yaml
508
 
509
  ### 可编辑场景
510
 
511
- 论文在三个重建场景中各修改一行代码,分别改变相机高度、加宽纸箱,或只保留马群中的一匹马。例如,纸箱变宽后,机器人仍沿原路径搬运它。
512
 
513
  <p align="center"><img src="https://huggingface.co/Skywalker0410/CodingDINO/resolve/main/assets/editable-scenes.png" width="100%" alt="同一时间点的 Three.js 原始渲染与编辑结果" /></p>
 
38
 
39
  ### Description
40
 
41
+ CodingDINO is a 27B vision-language model trained with agentic reinforcement learning to represent images and videos as executable programs. It extends DINO’s consistency principle to 2D and 3D reconstruction by comparing each target with what its own code renders at the same viewpoint or timestamp. Code makes layout, geometry and motion explicit and editable. In one Blender reconstruction, for example, a single parameter controls the number of petals on a rose.
42
 
43
+ The same checkpoint supports two inference settings. **CodingDINO-Single** writes a program in one pass without rendering feedback. In the interactive setting, **CodingDINO** can inspect rendered views and execution diagnostics and revise its code. Across six benchmarks, the interactive model ranks first on **10 of 12** headline metrics. The first draft retains **85.4%** of multi-turn quality, computed by averaging the single-pass to multi-turn score ratio across the 12 metrics.
44
 
45
  ### Demo Videos
46
 
 
68
 
69
  ## Model Architecture
70
 
71
+ CodingDINO starts from Qwen3.8-27B. A vision encoder of width 1,152 feeds a 64-layer language backbone of width 5,120 that combines gated delta-rule layers with causal attention. This release contains the checkpoint at RL step 65 and loads with `Qwen3_5ForConditionalGeneration` in Transformers.
72
+
73
+ Supervised fine-tuning uses DeepSeek-V4.1-Flash trajectories whose final programs pass execution and rendering checks. During multi-turn reinforcement learning, Group Relative Policy Optimization (GRPO) compares the model’s own attempts at the same task. Invalid submissions earn zero reward. For valid programs, frozen DINOv2-L and DINOv3-L/16 encoders measure how closely the final render resembles the target. For Three.js and Blender, the reward also compares relative-depth maps estimated by Depth Anything V2 Small. A video receives the mean score over corresponding timestamps.
74
 
75
  <p align="center"><img src="https://huggingface.co/Skywalker0410/CodingDINO/resolve/main/assets/framework.png" width="100%" alt="Visual coding environment and agentic reinforcement learning" /></p>
76
 
 
78
 
79
  | Input | What you receive |
80
  | --- | --- |
81
+ | Image and requested program type | A single chat request returns candidate source in the assistant message. A screenshot can become HTML, a diagram can become SVG, and an object image can become a Blender script. |
82
+ | Image or video, task instructions and any permitted assets passed to the harness | On successful submission, `submitted/` contains the verified entry file and supporting source. For video, one program generates the sequence from shared objects, state and motion rules. The run writes its outcome to `result.json` and its interaction history to `episode/`. |
83
 
84
  <a id="start-en"></a>
85
 
 
159
 
160
  The index maps the model parameters to 18 weight shards and one frozen MTP file. The additional tensor file in `native-gdn/` supplies the evaluated worker with the native normalization weights. Serve the directory containing `config.json`.
161
 
162
+ The released benchmark run used a 262,144-token context and a dedicated vLLM worker on four H800s per replica. The worker restores 48 native BF16 Gated DeltaNet normalization tensors from `native-gdn/` and checks their fingerprints. The frozen MTP weights provide three speculative tokens. To use the same configuration, stop the standard server, activate the matching vLLM environment and set the three local paths below.
163
 
164
  Set `MODEL_DIR` to the downloaded checkpoint, `CODE_REPO` to the code checkout that provides `Mix60BenchWorker`, and `LEARNER_PYTHON` to the interpreter containing the matching FLA and Transformer Engine kernels. The launcher points `V2C_MIX60_EXPORT_ROOT` at the native tensors and explicitly selects checkpoint step `65`.
165
 
 
211
 
212
  ### Run the rendering harness
213
 
214
+ The harness gives each task its own workspace. After an edit, the model can render the program and inspect a crop beside the corresponding region of the target. For video, it can check selected timestamps while revising. The final render must cover the full prescribed sequence.
215
+
216
  With the 262,144-token endpoint running, use the client environment in a second terminal. Set `CODE_REPO` to the code checkout. Copy `vision2code_harness_v1.yaml`, point `context_tokenizer` at the checkpoint and set `shell_base` and the renderer paths for your output format. The examples reconstruct a PNG as SVG and a video as a Three.js scene. [Harness configuration](https://github.com/Skywalker-yqz/CodingDINO/tree/HEAD/research/vision2code_agentic_rl/configs/harness)
217
 
218
  <details>
 
243
 
244
  ## Evaluation
245
 
246
+ The paper selects two headline metrics per benchmark, one for appearance and one for structure or motion. On Code2Video-Compass, CodingDINO scores **0.837** on appearance fidelity and **0.520** on motion fidelity, compared with 0.787 and 0.445 for Opus 5.5. On 3DHarnessBench, other models lead both headline metrics. [Benchmark results (Tables 1–6)](https://arxiv.org/pdf/2611.40817#page=8)
 
 
247
 
248
  | Benchmark | Reconstruction task |
249
  | --- | --- |
250
  | [3DHarnessBench](https://huggingface.co/datasets/lingada/3DHarnessBench) | Single view → Blender scene |
251
  | [CC-HARD](https://huggingface.co/datasets/xcodemind/CC-HARD) | Web screenshot → HTML |
252
  | [VFIG-Bench](https://huggingface.co/datasets/QijiaHe/VFIG-Bench) | Scientific figure → SVG |
253
+ | [DrawAI-Bench](https://huggingface.co/datasets/caopu/DrawAI-Bench-Lite) | Reference image → editable graphics |
254
  | [AnimWeb-Bench](https://github.com/starry1001/AnimWeb) | Reference animation → animated web page |
255
+ | [Code2Video-Compass (V2V)](https://github.com/code2video-compass/Code2Video-Compass) | Reference clip → code that renders the video |
256
+
257
+ CodingDINO and its teacher DeepSeek-V4.1-Flash were evaluated on the same 90 tasks at render budgets of 1, 2, 4 and 6. Across these budgets, the teacher used **5.0–6.9×** as many tokens on average as CodingDINO. At four renders, mean cumulative input and output tokens were 0.528 million for CodingDINO and 2.635 million for the teacher. [Inference measurements (Table 12)](https://arxiv.org/pdf/2611.40817#page=23)
258
+
259
+ The released logs cover the step-65 checkpoint evaluated with Vision2Code Harness v1.1, `xhigh` reasoning and context compaction. The run recorded 1,550 submissions for 1,555 available inputs, with up to 12 renders per task. Each turn allowed 20,480 output tokens including a 4,096-token thinking budget. Sampling used temperature 0.6 and top-p 0.95. The CLI examples above use the v1 client. Match `sample_id` across the scores and events to inspect a run. [Run settings](https://huggingface.co/Skywalker0410/CodingDINO-evallog/blob/main/run.json)
260
 
261
  Per-sample scores and event logs: [Hugging Face](https://huggingface.co/Skywalker0410/CodingDINO-evallog) · [ModelScope](https://www.modelscope.ai/models/Skywalker0410/CodingDINO-evallog) (coming soon).
262
 
 
264
 
265
  ### Editable Scenes
266
 
267
+ The paper changes one line in each of three reconstructed Three.js programs and renders the same instant again. Raising the freeway camera reveals the truck’s roof while traffic follows its original paths. Tripling the carton’s width leaves the robot’s carrying motion intact. Keeping the ninth of thirteen horses preserves that horse’s trajectory and the phase of its stride.
268
 
269
  <p align="center"><img src="https://huggingface.co/Skywalker0410/CodingDINO/resolve/main/assets/editable-scenes.png" width="100%" alt="Original and edited Three.js renders at matching timestamps" /></p>
270
 
 
294
 
295
  ### 模型介绍
296
 
297
+ CodingDINO 是一个 27B 视觉语言模型,通过智能体强化学习将图像和视频表示为可执行程序。它将 DINO 的一致性学习用于二维和三维重建,比较目标画面与程序在相同视角或时间点的渲染结果,从中学习视觉表征。布局、几何结构和运动都通过代码显式表达,可以直接查看和编辑。例如,在重建玫瑰的 Blender 脚本中,一个参数就决定了花瓣数量。
298
 
299
+ 同一份权重支持两种推理方式。**CodingDINO-Single** 根据输入一次写出程序,不使用渲染反馈。交互式 **CodingDINO** 可以查看渲染结果和执行诊断,再修改代码。在六个基准的 12 项主要指标中,交互式模型有 **10 项排名第一**。逐项计算单轮得分与多轮得分之比,再对 12 项指标取等权平均,初稿保留了多轮重建质量的 **85.4%**。
300
 
301
  ### 演示视频
302
 
 
324
 
325
  ## 模型架构
326
 
327
+ CodingDINO 以 Qwen3.8-27B 为底座。视觉编码器的隐藏维度为 1,152,语言主干有 64 层,隐藏维度为 5,120,结合了门控 Delta 规则层和因果注意力层。本仓库发布强化学习第 65 步的权重,可使用 Transformers 的 `Qwen3_5ForConditionalGeneration` 加载。
328
+
329
+ 监督微调使用 DeepSeek-V4.1-Flash 生成的交互轨迹,其中最终提交的程序均通过执行和渲染检查。在多轮强化学习阶段,组相对策略优化(GRPO)比较模型对同一任务的多次尝试。无效提交的奖励为零。对于有效程序,冻结的 DINOv2-L 和 DINOv3-L/16 编码器衡量最终渲染图与目标图像的外观相似度。Three.js 和 Blender 任务还会比较 Depth Anything V2 Small 估计的相对深度图。视频奖励取对应时间点得分的平均值。
330
 
331
  <p align="center"><img src="https://huggingface.co/Skywalker0410/CodingDINO/resolve/main/assets/framework.png" width="100%" alt="视觉编程环境与智能体强化学习" /></p>
332
 
 
334
 
335
  | 输入 | 输出 |
336
  | --- | --- |
337
+ | 图像与目标程序类型 | 单次请求在助手回复中返回候选源码。例如,网页截图可以重建为 HTML,示意图可以重建为 SVG,物体图像可以重建为 Blender 脚本。 |
338
+ | 传给交互环境的图像或视频、任务要求及允许使用的素材 | 成功提交后,`submitted/` 中包含已验证的入口文件及配套源码。对于视频,同一个程序通过跨帧共享的对象、状态和运动规则生成完整序列。运行结果写入 `result.json`,交互记录写入 `episode/`。 |
339
 
340
  <a id="start-zh"></a>
341
 
 
415
 
416
  索引将模型参数映射到 18 个权重分片和 1 个冻结的 MTP 文件。`native-gdn/` 单独提供评测 worker 所需的原生归一化权重。启动时,模型路径应指向含 `config.json` 的目录。
417
 
418
+ 本次发布的评测日志来自专用的 vLLM worker,每个服务副本配备四张 H800,使用 262,144 token 的上下文。worker 从 `native-gdn/` 恢复 48 个 BF16 Gated DeltaNet 归一化张量,并逐个核对指纹。冻结的 MTP 权重用于每步提出三个推测 token。要使用相同配置,先停止上面的标准服务,激活匹配的 vLLM 环境,再填写下方三个本地路径。
419
 
420
  将 `MODEL_DIR` 设为下载的权重目录,`CODE_REPO` 设为提供 `Mix60BenchWorker` 的代码仓库,`LEARNER_PYTHON` 设为含匹配版本 FLA 和 Transformer Engine 的 Python 解释器。启动命令将 `V2C_MIX60_EXPORT_ROOT` 指向原生张量目录,并显式指定检查点步数 `65`。
421
 
 
467
 
468
  ### 运行交互式渲染
469
 
470
+ 每个任务都有独立的工作目录。模型修改代码后可以执行渲染,将局部渲染图与目标图像中的对应区域并排比较。处理视频时,模型可以在修改过程中选取时间点查看,最终渲染则须覆盖任务指定的完整序列。
471
+
472
  保持 262,144 token 服务运行,在另一终端进入客户端环境,将 `CODE_REPO` 指向代码仓库。复制 `vision2code_harness_v1.yaml`,将 `context_tokenizer` 指向权重目录,再配置 `shell_base` 和对应输出格式的渲染器路径。下面两个例子分别把 PNG 重建为 SVG,把视频重建为 Three.js 场景。[交互环境配置](https://github.com/Skywalker-yqz/CodingDINO/tree/HEAD/research/vision2code_agentic_rl/configs/harness)
473
 
474
  <details>
 
499
 
500
  ## 评测
501
 
502
+ 论文在每个基准上选取两项主要指标,一项衡量外观,另一项衡量结构或运动。在 Code2Video-Compass 上,CodingDINO 的外观保真度为 **0.837**,运动保真度为 **0.520**,Opus 5.5 的对应得分为 0.787 和 0.445。在 3DHarnessBench 上,两项主要指标均由其他模型领先。[完整评测结果(表 1–6)](https://arxiv.org/pdf/2611.40817#page=8)
 
 
503
 
504
  | 基准 | 重建任务 |
505
  | --- | --- |
506
  | [3DHarnessBench](https://huggingface.co/datasets/lingada/3DHarnessBench) | 单视图 → Blender 场景 |
507
  | [CC-HARD](https://huggingface.co/datasets/xcodemind/CC-HARD) | 网页截图 → HTML |
508
  | [VFIG-Bench](https://huggingface.co/datasets/QijiaHe/VFIG-Bench) | 科研图表 → SVG |
509
+ | [DrawAI-Bench](https://huggingface.co/datasets/caopu/DrawAI-Bench-Lite) | 参考图像 → 可编辑图形 |
510
  | [AnimWeb-Bench](https://github.com/starry1001/AnimWeb) | 参考动画 → 网页动画 |
511
+ | [Code2Video-Compass (V2V)](https://github.com/code2video-compass/Code2Video-Compass) | 参考视频 → 能渲染该视频的程序 |
512
+
513
+ 在相同的 90 个配对任务上,渲染预算分别为 1、2、4 和 6 次时,教师模型 DeepSeek-V4.1-Flash 的平均 token 用量为 CodingDINO 的 **5.0–6.9 倍**。以 4 次渲染为例,每个任务累计输入与输出 token 的均值为 52.8 万(CodingDINO)和 263.5 万(教师模型)。[推理开销(表 12)](https://arxiv.org/pdf/2611.40817#page=23)
514
+
515
+ 发布的日志记录了第 65 步权重在 Vision2Code Harness v1.1 下的评测,推理强度为 `xhigh`,启用上下文压缩。每个���务最多渲染 12 次,1,555 个有输入的任务中有 1,550 个产生了提交。每轮最多输出 20,480 个 token,其中思考预算为 4,096 个 token。采样温度为 0.6,top-p 为 0.95。上方命令行示例使用 v1 客户端。按 `sample_id` 可对照同一任务的分数与交互记录。[运行配置](https://huggingface.co/Skywalker0410/CodingDINO-evallog/blob/main/run.json)
516
 
517
  逐样本分数与运行日志:[Hugging Face](https://huggingface.co/Skywalker0410/CodingDINO-evallog) · [ModelScope](https://www.modelscope.ai/models/Skywalker0410/CodingDINO-evallog)(待发布)。
518
 
 
520
 
521
  ### 可编辑场景
522
 
523
+ 论文在三个由 Three.js 重建的场景中各修改一行代码,再渲染同一时刻。抬高高速公路场景的相机后,卡车车顶进入视野,车辆仍沿原有轨迹行驶。将纸箱宽度改为原来的三倍后,机器人仍按原路径搬运。只保留 13 匹马中的第 9 匹后,这匹马的轨迹和对应时刻的步态也保持一致。
524
 
525
  <p align="center"><img src="https://huggingface.co/Skywalker0410/CodingDINO/resolve/main/assets/editable-scenes.png" width="100%" alt="同一时间点的 Three.js 原始渲染与编辑结果" /></p>