qwen-pixel-live / editing-progress.html
HuggingFriends's picture
Refresh Qwen Pixel-Edit progress
f1c98f6 verified
Raw History Blame Contribute Delete
38.8 kB
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Qwen Pixel-Edit 当前训练进度</title><style>
:root{color-scheme:dark;--bg:#0b1020;--panel:#141d32;--text:#e9eef8;--muted:#9caec9;--line:#293651;--accent:#70e0c1}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.7 system-ui,-apple-system,"Segoe UI",sans-serif}main{max-width:1160px;margin:auto;padding:32px 22px}h1{font-size:40px;line-height:1.2;margin:10px 0}h2{font-size:23px}h3{font-size:18px}.muted{color:var(--muted)}.eyebrow{color:var(--accent);letter-spacing:2px;font-size:13px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.card{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:22px;margin:15px 0}.big{font-size:48px;color:var(--accent);font-weight:700;line-height:1.2}.pill{background:#193c38;color:#9bf0d6;border-radius:30px;padding:5px 12px;font-size:12px}.bar{height:7px;background:#29364e;border-radius:6px;overflow:hidden;margin-top:12px}.bar i{display:block;height:100%;background:var(--accent)}table{border-collapse:collapse;width:100%;font-size:14px}td,th{text-align:left;padding:13px 10px;border-bottom:1px solid var(--line)}.scroll{overflow:auto}canvas{width:100%;height:240px;background:#10182b;border-radius:12px}.images{display:grid;grid-template-columns:1fr 1fr;gap:12px}.triple{grid-template-columns:repeat(3,1fr)}figure{margin:0}img{width:100%;display:block;border-radius:10px;object-fit:contain;background:#080d17}figcaption{text-align:center;color:var(--muted);font-size:13px;padding:8px}pre{white-space:pre-wrap;word-break:break-word;max-height:480px;overflow:auto;background:#0b1222;padding:18px;border-radius:10px;font:12px/1.6 ui-monospace,monospace}summary{cursor:pointer;color:var(--accent)}.notice{border-left:3px solid var(--accent);padding-left:16px}.links a{color:var(--accent)}@media(max-width:700px){h1{font-size:30px}.grid{grid-template-columns:1fr}.card{padding:16px}.triple{grid-template-columns:1fr}.big{font-size:40px}}
.rgb-images{grid-template-columns:repeat(5,1fr)}a{color:var(--accent)}@media(max-width:700px){.rgb-images{grid-template-columns:1fr 1fr}} .gain64-images{grid-template-columns:repeat(4,1fr)}@media(max-width:700px){.gain64-images{grid-template-columns:1fr 1fr}}</style></head><body><main><h1>Qwen Pixel-Edit:当前训练进度</h1><p class="muted">2026-11-27 16:55:25 北京时间 · <a href="index.html">完整实验看板</a></p><section class="card" id="production-efficiency"><h2>数据构造:严格合格进度</h2><div class="grid"><div><p>严格合格监督(相同内容去重)</p><div class="big">35,395 / 20,000</div><div class="bar"><i style="width:100.0%"></i></div></div><div><p>独立编辑任务</p><div class="big">13,474 / 10,000</div><div class="bar"><i style="width:100.0%"></i></div></div></div><p>最近一小时首次严格通过:<b>617</b> 条;新版流水线完成候选 921。切换后的第一个小时属于不完整观测窗口,暂不据此自动推算完成日期。</p><p>所有来源统一要求:指令遵循、区域保留、画质、完整编辑范围均至少4/5,且完整目标判定为真;程序执行、复跑、依赖与英文检查通过。历史库存另列,新严格库存尚未完成全量人工审核。</p><p><b>存储状态:</b>活跃数据已迁至新盘,CPU/API 数据构造已恢复;GPU 任务保持暂停。</p><p>迁移快照:SFT素材与构造文件约 69.6 GB;约59 GB的API传输归档已删除,后续不长期保存请求与回复副本。</p><div class="scroll"><table><thead><tr><th>来源</th><th>严格 RFT</th><th>严格 TI</th><th>合计</th></tr></thead><tbody><tr><td>anyedit</td><td>724</td><td>205</td><td>929</td></tr><tr><td>magicbrush</td><td>799</td><td>426</td><td>1,225</td></tr><tr><td>maskedit_en</td><td>2,201</td><td>4,137</td><td>6,338</td></tr><tr><td>maskedit_scene</td><td>1,702</td><td>2,648</td><td>4,350</td></tr><tr><td>sciforma</td><td>14,608</td><td>6,025</td><td>20,633</td></tr><tr><td>ultraedit</td><td>1,273</td><td>647</td><td>1,920</td></tr></tbody></table></div><h3>生产线心跳和实际产出</h3><div class="scroll"><table><thead><tr><th>生产线</th><th>状态</th><th>心跳</th><th>近一小时首次严格通过</th><th>错误重试预算耗尽</th></tr></thead><tbody><tr><td>rft_and_rescue</td><td>running</td><td>2026-11-27T16:55:48.360279+08:00</td><td>160</td><td>0</td></tr><tr><td>gpt62</td><td>running</td><td>2026-11-27T16:55:28.076835+08:00</td><td>0</td><td>0</td></tr><tr><td>ti_balanced_en_v1</td><td>running</td><td>2026-11-27T16:55:39.931842+08:00</td><td>93</td><td>2</td></tr><tr><td>ti_night_sol_v2</td><td>waiting_for_off_peak</td><td>2026-11-27T16:55:23.185723+08:00</td><td>0</td><td>0</td></tr><tr><td>sol61_extra_v3</td><td>running</td><td>2026-11-27T16:55:42.435409+08:00</td><td>134</td><td>0</td></tr><tr><td>teacher56_extra_v3</td><td>running</td><td>2026-11-27T16:55:39.748774+08:00</td><td>104</td><td>0</td></tr><tr><td>sol62_extra_v3</td><td>running</td><td>2026-11-27T16:55:33.012217+08:00</td><td>0</td><td>4</td></tr><tr><td>finegrained_extra_v1</td><td>running</td><td>2026-11-27T16:55:33.617215+08:00</td><td>126</td><td>0</td></tr><h3>对标Qwen-Image-Edit:fine-grained数据</h3><p>已从现有官方train索引 3071 个候选任务(尚未全数通过teacher)。重点:文字/数字、局部组件属性、材质、光照与几何辅助线。</p><p class="muted">2511公开卖点包含一致性、工业材质、光照和几何推理;2509还强调文字样式与多图编辑。当前主线仍是单图source-only程序,多图和新视角是待补齐能力。官方GPU基线尚未重新运行。</p><p><a href="https://huggingface.co/Qwen/Qwen-Image-Edit-2511">官方2511能力说明</a> · <a href="https://huizhang0812.github.io/WeEdit/">WeEdit文字编辑</a> · <a href="https://arxiv.org/abs/2604.10954">FineEdit区域编辑</a></p><h3>单次回答的配对 prompt 测试</h3><p>同一批24个训练任务,比较原版与执行约束版;相同RGB检查与图像judge。进度 384/384。排队/API错误单列,小样本结果用于选择下一轮实验。</p><div class="scroll"><table><thead><tr><th>Teacher / prompt</th><th>已完成</th><th>严格合格</th><th>通过率</th><th>基础设施待处理</th></tr></thead><tbody><tr><td>deepseek/baseline</td><td>24</td><td>5</td><td>20.8%</td><td>0</td></tr><tr><td>deepseek/contract_v3</td><td>24</td><td>5</td><td>20.8%</td><td>0</td></tr><tr><td>gpt55/baseline</td><td>24</td><td>6</td><td>25.0%</td><td>0</td></tr><tr><td>gpt55/contract_v3</td><td>24</td><td>5</td><td>20.8%</td><td>0</td></tr><tr><td>gpt56sol/baseline</td><td>24</td><td>7</td><td>29.2%</td><td>0</td></tr><tr><td>gpt56sol/contract_v3</td><td>24</td><td>10</td><td>41.7%</td><td>0</td></tr><tr><td>gpt61/baseline</td><td>24</td><td>9</td><td>37.5%</td><td>0</td></tr><tr><td>gpt61/contract_v3</td><td>24</td><td>11</td><td>45.8%</td><td>0</td></tr><tr><td>gpt62/baseline</td><td>24</td><td>11</td><td>45.8%</td><td>0</td></tr><tr><td>gpt62/contract_v3</td><td>24</td><td>12</td><td>50.0%</td><td>0</td></tr><tr><td>luna/baseline</td><td>24</td><td>8</td><td>33.3%</td><td>0</td></tr><tr><td>luna/contract_v3</td><td>24</td><td>6</td><td>25.0%</td><td>0</td></tr><tr><td>seed21pro/baseline</td><td>24</td><td>3</td><td>12.5%</td><td>0</td></tr><tr><td>seed21pro/contract_v3</td><td>24</td><td>2</td><td>8.3%</td><td>0</td></tr><tr><td>terra/baseline</td><td>24</td><td>7</td><td>29.2%</td><td>0</td></tr><tr><td>terra/contract_v3</td><td>24</td><td>9</td><td>37.5%</td><td>0</td></tr></tbody></table></div></tbody></table></div><p>新任务导入状态:downloading_training_shard;图片预算 64 GiB,当前约 45.11 GiB。</p><p class="muted">路由优先局部像素操作和图形编辑;复杂物体合成占每条生产线滚动24小时尝试预算至多约15%。RFT至多2个teacher、独立TI至多2个Sol、语义失败补救至多1次;排队中的请求持续等待,API错误达到重试预算后保留待处理记录。原始数据与旧实验保留。</p></section><section class="card" id="current-editing"><h2>历史导出库存与已完成实验</h2><p>模型输入原图和英文编辑指令,一次输出计划与 Python,程序从原图计算修改后的 RGB。下表保留旧导出口径;新的严格合格库存见上方进度。</p><div class="big">20,859 行历史英文导出</div><p>RFT 14,417 + TI 6,442 · 独立任务 14,256。这里包含不同 teacher、增强版本及已停用来源的存档,不能作为新版严格训练集规模。新的训练快照对所有来源执行同一质量门槛。</p><div class="scroll"><table><thead><tr><th>来源</th><th>RFT</th><th>TI</th><th>合计</th></tr></thead><tbody><tr><td>anyedit</td><td>1,104</td><td>408</td><td>1,512</td></tr><tr><td>instructpix2pix</td><td>1,014</td><td>346</td><td>1,360</td></tr><tr><td>magicbrush</td><td>5,238</td><td>3,615</td><td>8,853</td></tr><tr><td>maskedit_en</td><td>685</td><td>620</td><td>1,305</td></tr><tr><td>maskedit_scene</td><td>690</td><td>623</td><td>1,313</td></tr><tr><td>sciforma</td><td>1,891</td><td>147</td><td>2,038</td></tr><tr><td>ultraedit</td><td>3,795</td><td>683</td><td>4,478</td></tr></tbody></table></div></section><section class="card" id="rl-current"><h2>最新 RL smoke:同一批 64 个 MagicBrush dev 任务</h2><div class="grid"><div><p>SFT 起点</p><div class="big">3/64</div><p>代码执行 44/64</p></div><div><p>RL 后</p><div class="big">11/64</div><p>代码执行 46/64</p></div></div><p>3 次真实参数更新,初始 SFT reference 权重不变。10 个任务由失败变成功,2 个由成功变失败。</p><p class="notice">这是自建图像 judge 的语义评估,不是官方像素指标。目前只有一个训练 seed,旧 greedy 推理存在数值重复性问题。正在用固定数值设置重复评测;不能直接归因为稳定 RL 收益。</p></section><section class="card" id="matched-sft"><h2>正在推进:同 teacher、同任务的 RFT/TI 配比实验</h2><p>每个配置覆盖相同的 256 个真实训练任务,TI 替换 RFT 答案。0%、25%、50% 是样本行数比例,三组总回答 token 预算均为 100 万;实际 TI token 比例另行统计。</p><p><b>ti00</b> · 157 步 · 1,001,372 / 1,000,000 回答 tokens · loss 0.46102285385131836</p><div class="bar"><i style="width:100.0%"></i></div><p>固定 dev64:图像 judge 11/64,代码执行 36/64。</p><p class="muted">实际TI回答token占比 0.0% · 平均每行出现 1.23 次</p><p><b>ti25</b> · 153 步 · 1,001,002 / 1,000,000 回答 tokens · loss 0.6757060885429382</p><div class="bar"><i style="width:100.0%"></i></div><p>固定 dev64:图像 judge 8/64,代码执行 34/64。</p><p class="muted">实际TI回答token占比 28.6% · 平均每行出现 1.20 次</p><p><b>ti50</b> · 150 步 · 1,003,372 / 1,000,000 回答 tokens · loss 0.7614325284957886</p><div class="bar"><i style="width:100.0%"></i></div><p>固定 dev64:图像 judge 7/64,代码执行 30/64。</p><p class="muted">实际TI回答token占比 53.7% · 平均每行出现 1.17 次</p><p class="muted">此实验限于 RFT 和 TI 都成功的任务,测试监督形式;TI 救回难任务的覆盖收益需要另一组对照。官方 benchmark、独立人工审核、跨数据集与多 seed 结果仍待补齐。</p></section><section class="card"><h2>当前重复验证</h2><p>固定数值设置和6k输出预算,重新测同一批dev64;第二个RL seed采用相同设置。推理完成后展示全量结果。</p><div class="scroll"><table><thead><tr><th>流程</th><th>已评任务</th><th>执行成功</th><th>图像judge通过</th></tr></thead><tbody><tr><td>SFT起点</td><td>64/64</td><td>43</td><td>11</td></tr><tr><td>已有RL模型</td><td>64/64</td><td>46</td><td>10</td></tr><tr><td>Qwen3.8零样本</td><td>64/64</td><td>47</td><td>4</td></tr></tbody></table></div></section><section class="card"><h2>InstructPix2Pix 已停用</h2><p>按用户要求,不再采集或构造该来源的RFT/TI。已经生成的原始记录、图片与旧实验保留;历史库存数字包含这些存档,新训练快照排除该来源。</p></section><section class="card" id="data-growth"><h2>持续构造 SFT 数据</h2><p>任务池 <b>42,812</b> 个 · 本次合格轨迹 <b>8,996</b> 条 · 对应 <b>8,996</b> 个任务</p><p class="muted">生产心跳:2026-11-27T16:55:11.151981+08:00 · 白天并发配置。任务池会自动读取新数据,不在 128 条或 10k 行时停止。</p><div class="scroll"><table><thead><tr><th>Teacher / 方式</th><th>运行或等待 API / 并发上限</th><th>待处理</th><th>已完成</th><th>合格轨迹</th><th>待重试</th></tr></thead><tbody><tr><td>GPT-5.5 · RFT</td><td>0 / 8</td><td>0</td><td>8,124</td><td>1,828</td><td>49</td></tr><tr><td>GPT-6.1-Sol · RFT</td><td>7 / 8</td><td>14,548</td><td>13,261</td><td>5,292</td><td>2216</td></tr><tr><td>GPT-5.6-Terra · RFT</td><td>0 / 4</td><td>0</td><td>1,066</td><td>249</td><td>34</td></tr><tr><td>GPT-5.6-Luna · RFT</td><td>0 / 4</td><td>0</td><td>1,043</td><td>223</td><td>23</td></tr><tr><td>GPT-6.1-Sol · TI</td><td>0 / 8</td><td>0</td><td>3,970</td><td>341</td><td>581</td></tr><tr><td>GPT-6.2-Sol · RFT</td><td>4 / 4</td><td>12,324</td><td>2,016</td><td>1,063</td><td>33</td></tr></tbody></table></div><p>自动扩库:<b>读取新的官方训练分片</b>。已接入任务:{&quot;anyedit&quot;: 14559, &quot;maskedit_scene&quot;: 4804, &quot;maskedit_en&quot;: 2266, &quot;maskedit_cn&quot;: 523, &quot;ultraedit&quot;: 11528, &quot;instructpix2pix&quot;: 2902, &quot;sciforma&quot;: 7624, &quot;magicbrush&quot;: 2491}。</p><p>已导出 <b>4,728</b> 条新 SFT 轨迹。原有 8,601 / 12,006 条对照训练集保持冻结,新增数据单独保存,用于后续规模实验。</p><p class="notice">合格要求:一次 teacher 输出、程序过滤、执行、完整目标区域的图像 judge 和重用执行检查通过。API 或 judge 错误会重试,不计为成功样本。任务按原图内容分组,排除官方 MagicBrush dev 与现有验证图片的内容重叠。TI 在 source-only 失败后补救,学生输入只包含原图和指令。</p></section><section class="card" id="ti-enrichment"><h2>英文 TI:独立补充训练样本</h2><p>RFT成功的任务也构造TI,保留两种方法的合格轨迹。新数据只保留英文任务和监督文本;旧实验保留用于复现,中文子集不进入新训练快照。北京时间工作日18:00–09:00、周末全天提高Sol并发。1:1为训练配比对照目标,当前通过率不被人为调整。</p><p>独立TI合格样本 <b>2,158</b> · 生产心跳 2026-11-27T16:55:04.625965+08:00</p><div class="scroll"><table><thead><tr><th>TI teacher</th><th>运行/并发上限</th><th>待处理</th><th>已完成</th><th>合格</th><th>待重试</th></tr></thead><tbody><tr><td>GPT-6.1-Sol</td><td>7/8</td><td>16,753</td><td>11,144</td><td>3,527</td><td>2171</td></tr><tr><td>GPT-6.2-Sol</td><td>4/4</td><td>16,453</td><td>6,348</td><td>2,197</td><td>180</td></tr></tbody></table></div><h3>非工作时间补充:61/62-Sol TI</h3><p>状态 waiting_for_off_peak · 心跳 2026-11-27T16:54:59.002605+08:00。仅北京时间工作日18:00–09:00或周末发起新请求;白天保留排队中的调用。优先科研图、文字布局、区域编辑和MagicBrush。</p><div class="scroll"><table><thead><tr><th>Teacher</th><th>运行或等待 / 上限</th><th>待构造</th><th>合格轨迹</th></tr></thead><tbody><tr><td>GPT-6.1-Sol</td><td>0/0</td><td>19,711</td><td>2,961</td></tr><tr><td>GPT-6.2-Sol</td><td>0/0</td><td>16,653</td><td>1,924</td></tr></tbody></table></div><p class="muted">每个teacher增加至多16个夜间请求槽;额外候选使用独立ID,不改写旧轨迹。并发上限包含可能仍在API队列中的请求,不代表完成速度。</p><h3>当前英文SFT库存:按样本行数统计,可相加</h3><div class="scroll"><table><thead><tr><th>数据来源</th><th>RFT行数</th><th>TI行数</th><th>合计</th></tr></thead><tbody><tr><td>anyedit</td><td>1,104</td><td>408</td><td>1,512</td></tr><tr><td>instructpix2pix</td><td>1,014</td><td>346</td><td>1,360</td></tr><tr><td>magicbrush</td><td>5,238</td><td>3,615</td><td>8,853</td></tr><tr><td>maskedit_en</td><td>685</td><td>620</td><td>1,305</td></tr><tr><td>maskedit_scene</td><td>690</td><td>623</td><td>1,313</td></tr><tr><td>sciforma</td><td>1,891</td><td>147</td><td>2,038</td></tr><tr><td>ultraedit</td><td>3,795</td><td>683</td><td>4,478</td></tr></tbody></table></div><p>英文SFT行数 <b>20,859</b> = RFT 14,417 + TI 6,442;独立任务覆盖 14,256。行数包含不同teacher轨迹和增强版本,后续冻结训练快照另做完全相同监督内容的去重。</p></section><section class="card"><h3>展示样本的质量门槛</h3><p>下方是历史候选的图像展示:自建图像judge通过、画质与保留评分至少4/5。页面顶部的新版严格库存还要求指令遵循、完整编辑范围至少4/5和完整目标判定。InstructPix2Pix已停用,旧记录存档保留,新库存排除。</p></section><article class="card"><h3>质量筛选后的候选:In the main ECML diagram’s top-left area (View 1 input), completely remove the white rectangle with a thin light-green solid border that contained the 7-line black paragraph beginning “I&#x27;m not sure if they&#x27;re …” with bolded phrases “thousand island” and “thick pink mayo,” leaving a blank background in its place.</h3><p class="muted">sciforma · GPT-6.1-Sol · RFT · 自建图像judge通过 · 画质5/5 · 保留5/5</p><div class="images triple"><figure><img src="assets/growth_98b1831d894a_source.jpg"><figcaption>原图</figcaption></figure><figure><img src="assets/growth_98b1831d894a_edited.jpg"><figcaption>单次 teacher 代码执行</figcaption></figure><figure><img src="assets/growth_98b1831d894a_target.jpg"><figcaption>数据集目标</figcaption></figure></div><details><summary>完整 teacher 计划与代码</summary><pre>{
&quot;visual_evidence&quot;: [
&quot;The top-left View 1 input is a white text rectangle outlined by a thin light-green border.&quot;,
&quot;Its black paragraph begins “I&#x27;m not sure if they&#x27;re” and includes bold “thousand island” and “thick pink mayo.”&quot;,
&quot;The surrounding diagram background is white.&quot;,
&quot;The View 1 label is below the rectangle, and a green arrow begins immediately to its right.&quot;
],
&quot;target_object&quot;: &quot;The entire bordered paragraph rectangle in the View 1 input.&quot;,
&quot;target_region&quot;: &quot;Approximately 3.3%–19.0% of the image width and 0%–34.5% of its height, at the top-left.&quot;,
&quot;editing_intent&quot;: &quot;Remove all paragraph text and the complete light-green rectangular border, replacing them with matching blank background.&quot;,
&quot;editing_plan&quot;: [
&quot;Mask the rectangle, including its border and a narrow white margin.&quot;,
&quot;Sample an unobstructed white background patch above the adjacent network block.&quot;,
&quot;Copy that background texture across the masked region, retaining its native color and pixel variation.&quot;,
&quot;Feather the mask boundary inside the narrow margin and preserve every pixel outside the target region.&quot;
],
&quot;preservation_constraints&quot;: [
&quot;Keep the View 1 label beneath the removed rectangle unchanged.&quot;,
&quot;Keep the adjacent green arrow and network block unchanged.&quot;,
&quot;Preserve the burger photograph, all other text, arrows, evidence bars, opinion diagrams, and aggregation elements.&quot;,
&quot;Preserve the image dimensions.&quot;
]
}
def edit(image):
import numpy as np
import cv2
from PIL import Image
w, h = image.size
src = np.asarray(image.convert(&#x27;RGB&#x27;)).copy()
# This mask encompasses the paragraph and its complete green border,
# including the border where it meets the top edge of the image.
x0 = max(0, int(np.floor(0.0325 * w)))
x1 = min(w, int(np.ceil(0.190625 * w)))
y0 = 0
y1 = min(h, int(np.ceil(0.3500 * h)))
# Unmarked background between the removed input and the network block.
sx0 = min(w - 1, max(0, int(round(0.200 * w))))
sx1 = min(w, max(sx0 + 1, int(round(0.235 * w))))
sy0 = min(h - 1, max(0, int(round(0.008 * h))))
sy1 = min(h, max(sy0 + 1, int(round(0.085 * h))))
patch = src[sy0:sy1, sx0:sx1]
# Patch copying reproduces the actual blank diagram background,
# rather than substituting an arbitrary gray or adding artificial grain.
rh, rw = y1 - y0, x1 - x0
ph, pw = patch.shape[:2]
tiled = np.tile(patch, ((rh + ph - 1) // ph,
(rw + pw - 1) // pw, 1))[:rh, :rw]
replacement = src.copy()
replacement[y0:y1, x0:x1] = tiled
mask = np.zeros((h, w), dtype=np.float32)
mask[y0:y1, x0:x1] = 1.0
sigma = max(0.35, 0.001 * min(w, h))
alpha = cv2.GaussianBlur(mask, (0, 0), sigmaX=sigma,
sigmaY=sigma, borderType=cv2.BORDER_REPLICATE)
# Restrict blending to the target; the surrounding arrow and label
# are never modified. The border lies inside the full-opacity area.
alpha *= mask
alpha = alpha[:, :, None]
result = np.rint(src.astype(np.float32) * (1.0 - alpha) +
replacement.astype(np.float32) * alpha)
result = np.clip(result, 0, 255).astype(np.uint8)
if image.mode == &#x27;RGBA&#x27;:
original_alpha = np.asarray(image.getchannel(&#x27;A&#x27;))
return Image.fromarray(np.dstack((result, original_alpha)), &#x27;RGBA&#x27;)
return Image.fromarray(result, &#x27;RGB&#x27;)</pre></details></article><article class="card"><h3>质量筛选后的候选:1. Inside the main dashed ‘For each frame’ block (centre-left of the single-panel diagram), completely remove the light-peach rectangular module with a solid black border and the centred black text “D-MAD”, which previously sat immediately above the light-blue “Quality” rectangle.
2. On the single-panel diagram’s left-centre area, delete the entire thick black compound connector that consisted of an upper right-pointing arrow feeding the peach “D-MAD” box, a vertical downward stroke, and a lower right-pointing arrow feeding the blue “Quality” box; after removal, the dashed ‘For each frame’ outline must remain with no incoming bracket-shaped arrow.</h3><p class="muted">sciforma · GPT-6.1-Sol · RFT · 自建图像judge通过 · 画质5/5 · 保留5/5</p><div class="images triple"><figure><img src="assets/growth_439d3f8c3c5c_source.jpg"><figcaption>原图</figcaption></figure><figure><img src="assets/growth_439d3f8c3c5c_edited.jpg"><figcaption>单次 teacher 代码执行</figcaption></figure><figure><img src="assets/growth_439d3f8c3c5c_target.jpg"><figcaption>数据集目标</figcaption></figure></div><details><summary>完整 teacher 计划与代码</summary><pre>{
&quot;visual_evidence&quot;: [
&quot;A peach rectangle labeled “D-MAD” sits above the blue “Quality” rectangle inside the dashed “For each frame” outline.&quot;,
&quot;A thick black connector to the left branches into two right-pointing arrows entering those rectangles.&quot;,
&quot;The surrounding diagram background is white.&quot;
],
&quot;target_object&quot;: &quot;The peach D-MAD module and the entire incoming bracket-shaped connector&quot;,
&quot;target_region&quot;: &quot;Centre-left: the upper module inside the dashed block and the branching connector immediately outside its left edge&quot;,
&quot;editing_intent&quot;: &quot;Remove the D-MAD rectangle, its border and text, and both incoming arrows with their connecting vertical stroke, leaving clean background.&quot;,
&quot;editing_plan&quot;: [
&quot;Mask the complete peach module, including its black border and label.&quot;,
&quot;Detect and mask the black compound connector within a tightly bounded region, including antialiased edges.&quot;,
&quot;Replace masked pixels with clean white-background patches sampled from the same image.&quot;,
&quot;Feather the replacement boundaries while preserving the dashed outline and all neighboring diagram content.&quot;
],
&quot;preservation_constraints&quot;: [
&quot;Keep the entire dashed “For each frame” outline and its caption unchanged.&quot;,
&quot;Keep the blue Quality rectangle, border, and text unchanged.&quot;,
&quot;Keep the document image, input sequence, and document-to-frame arrow unchanged.&quot;,
&quot;Keep both outgoing score arrows, score labels, fusion block, optional connector, and final classification labels unchanged.&quot;
]
}
def edit(image):
import numpy as np
import cv2
from PIL import Image
w, h = image.size
original = np.asarray(image.convert(&#x27;RGB&#x27;)).copy()
mask = np.zeros((h, w), dtype=np.uint8)
def bounds(rect):
x0, y0, x1, y1 = rect
return (max(0, int(np.floor(x0 * w))),
max(0, int(np.floor(y0 * h))),
min(w, int(np.ceil(x1 * w))),
min(h, int(np.ceil(y1 * h))))
# This rectangle includes the peach fill, black text, border,
# and a small white margin, but excludes the dashed outline.
module = bounds((0.335, 0.5203125, 0.464375, 0.675))
mx0, my0, mx1, my1 = module
mask[my0:my1, mx0:mx1] = 255
# Only the incoming compound connector lies in this region.
connector = bounds((0.2325, 0.5875, 0.321875, 0.8359375))
cx0, cy0, cx1, cy1 = connector
roi = original[cy0:cy1, cx0:cx1]
dark = (np.min(roi, axis=2) &lt; 250).astype(np.uint8) * 255
radius = max(1, int(round(0.003125 * h)))
kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE,
(2 * radius + 1, 2 * radius + 1))
dark = cv2.dilate(dark, kernel)
mask[cy0:cy1, cx0:cx1] = np.maximum(
mask[cy0:cy1, cx0:cx1], dark)
# Copy actual clean background pixels rather than imposing a
# synthetic solid color or blurring adjacent diagram features.
replacement = original.copy()
for x0, y0, x1, y1 in (module, connector):
bw, bh = x1 - x0, y1 - y0
sx = int(round(0.75 * w))
sy = int(round(0.08 * h))
patch = original[sy:sy + bh, sx:sx + bw]
if patch.shape[:2] != (bh, bw):
clean = original[int(0.06 * h):int(0.25 * h),
int(0.72 * w):int(0.92 * w)]
patch = cv2.resize(clean, (bw, bh), interpolation=cv2.INTER_LINEAR)
replacement[y0:y1, x0:x1] = patch
# Feather only inside the mask. The mask&#x27;s margins ensure all
# original ink and peach pixels receive full replacement opacity.
distance = cv2.distanceTransform(mask, cv2.DIST_L2, 5)
feather_width = max(0.75, 0.0015625 * h)
alpha = np.clip(distance / feather_width, 0.0, 1.0)[..., None]
result = np.rint(original.astype(np.float32) * (1.0 - alpha) +
replacement.astype(np.float32) * alpha)
result = np.clip(result, 0, 255).astype(np.uint8)
output = Image.fromarray(result, &#x27;RGB&#x27;)
if image.mode == &#x27;RGBA&#x27;:
output = output.convert(&#x27;RGBA&#x27;)
output.putalpha(image.getchannel(&#x27;A&#x27;))
return output</pre></details></article><article class="card"><h3>质量筛选后的候选:Replace the tennis racket with a lightsaber</h3><p class="muted">ultraedit · GPT-6.1-Sol · RFT · 自建图像judge通过 · 画质4/5 · 保留5/5</p><div class="images triple"><figure><img src="assets/growth_cb9da330019b_source.jpg"><figcaption>原图</figcaption></figure><figure><img src="assets/growth_cb9da330019b_edited.jpg"><figcaption>单次 teacher 代码执行</figcaption></figure><figure><img src="assets/growth_cb9da330019b_target.jpg"><figcaption>数据集目标</figcaption></figure></div><details><summary>完整 teacher 计划与代码</summary><pre>{
&quot;visual_evidence&quot;: [
&quot;A person stands on a tennis court holding a racket in the hand on the right side of the image.&quot;,
&quot;The racket&#x27;s dark handle angles downward and right from the hand.&quot;,
&quot;The oval racket head and strings lie near the right image edge against the gray court.&quot;,
&quot;The scene has daylight illumination, fine photographic texture, and a chain-link fence in the background.&quot;
],
&quot;target_object&quot;: &quot;The tennis racket&quot;,
&quot;target_region&quot;: &quot;The handle beside the person&#x27;s rightmost hand and the oval racket head extending toward the lower-right image edge.&quot;,
&quot;editing_intent&quot;: &quot;Replace the racket with a metallic lightsaber hilt held by the same hand and a luminous blue blade pointing downward and right.&quot;,
&quot;editing_plan&quot;: [
&quot;Mask the racket shaft, rim, and strings without covering the person&#x27;s hand.&quot;,
&quot;Remove the racket using inpainting and nearby court texture, matching local color and retaining photographic grain.&quot;,
&quot;Construct a shaded metallic hilt aligned with the original grip, with dark grooves, an emitter, and a small control button.&quot;,
&quot;Add a narrow blue-white blade, softly feathered edges, restrained blue bloom, and subtle hilt shadow.&quot;,
&quot;Restore the visible fingers over the hilt and preserve the person, court markings, fence, and background.&quot;
],
&quot;preservation_constraints&quot;: [
&quot;Keep the person&#x27;s face, hair, clothing, body, and pose unchanged.&quot;,
&quot;Preserve the hand&#x27;s visible skin and its position.&quot;,
&quot;Do not alter the fence, greenery, court markings, or unrelated background.&quot;,
&quot;Retain the source image dimensions and photographic texture.&quot;
]
}
def edit(image):
import numpy as np
import cv2
from PIL import Image
w, h = image.size
scale = float(min(w, h))
original = np.asarray(image.convert(&#x27;RGB&#x27;)).copy()
rng = np.random.default_rng(37)
def point(x, y):
return (int(round(x * (w - 1))), int(round(y * (h - 1))))
head = np.zeros((h, w), np.uint8)
cv2.ellipse(head, point(0.965, 0.676),
(max(1, int(round(0.031 * w))), max(1, int(round(0.065 * h)))),
-24, 0, 360, 255, -1, cv2.LINE_AA)
cv2.line(head, point(0.917, 0.605), point(0.939, 0.637),
255, max(2, int(round(0.013 * scale))), cv2.LINE_AA)
dilation = max(1, int(round(0.006 * scale)))
kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE,
(2 * dilation + 1, 2 * dilation + 1))
head = cv2.dilate(head, kernel)
shaft = np.zeros((h, w), np.uint8)
cv2.line(shaft, point(0.879, 0.563), point(0.932, 0.628),
255, max(3, int(round(0.016 * scale))), cv2.LINE_AA)
removal = cv2.bitwise_or(head, shaft)
# Protect skin at the gripping hand before removing the equipment.
hand_roi = np.zeros((h, w), np.uint8)
hand_polygon = np.array([point(0.852, 0.520), point(0.881, 0.529),
point(0.900, 0.549), point(0.900, 0.565),
point(0.883, 0.570), point(0.862, 0.552)], np.int32)
cv2.fillPoly(hand_roi, [hand_polygon], 255)
rgb = original.astype(np.float32)
skin = ((rgb[:, :, 0] &gt; rgb[:, :, 1] + 5) &amp;
(rgb[:, :, 1] &gt; rgb[:, :, 2] + 5) &amp;
(rgb[:, :, 0] &gt; 100) &amp; (hand_roi &gt; 0)).astype(np.uint8) * 255
removal[skin &gt; 0] = 0
head[skin &gt; 0] = 0
filled = cv2.inpaint(original, removal, max(2, int(round(0.010 * scale))),
cv2.INPAINT_TELEA).astype(np.float32)
# Transfer real asphalt grain from the clear court immediately to the left.
shift = max(1, int(round(0.095 * w)))
donor_x = np.clip(np.arange(w) - shift, 0, w - 1)
donor = rgb[:, donor_x, :].copy()
outer = cv2.dilate(head, cv2.getStructuringElement(
cv2.MORPH_ELLIPSE, (2 * dilation + 5, 2 * dilation + 5)))
ring = (outer &gt; 0) &amp; (removal == 0)
if np.any(ring):
correction = np.median(rgb[ring] - donor[ring], axis=0)
donor += np.clip(correction, -12, 12)
distance_inside = cv2.distanceTransform((head &gt; 0).astype(np.uint8),
cv2.DIST_L2, 5)
patch_alpha = np.clip(distance_inside / max(1.0, 0.007 * scale), 0, 1)
filled = filled * (1 - patch_alpha[:, :, None]) + donor * patch_alpha[:, :, None]
fine_noise = rng.normal(0, 0.65, (h, w, 1)).astype(np.float32)
filled += fine_noise * ((removal &gt; 0)[:, :, None])
canvas = np.where((removal &gt; 0)[:, :, None], filled, rgb).astype(np.float32)
yy, xx = np.mgrid[0:h, 0:w].astype(np.float32)
start = np.array([0.879 * (w - 1), 0.563 * (h - 1)], np.float32)
emitter = np.array([0.910 * (w - 1), 0.614 * (h - 1)], np.float32)
axis = emitter - start
handle_length = float(np.linalg.norm(axis))
direction = axis / max(handle_length, 1e-6)
perpendicular = np.array([-direction[1], direction[0]], np.float32)
dx, dy = xx - start[0], yy - start[1]
longitudinal = dx * direction[0] + dy * direction[1]
transverse = dx * perpendicular[0] + dy * perpendicular[1]
fraction = longitudinal / max(handle_length, 1e-6)
antialias = max(0.65, 0.0015 * scale)
def blend(color, alpha):
nonlocal canvas
a = np.clip(alpha, 0, 1)[:, :, None]
c = np.asarray(color, dtype=np.float32)
canvas = canvas * (1 - a) + c * a
def capsule_distance(ax, ay, bx, by):
vx, vy = bx - ax, by - ay
t = np.clip(((xx - ax) * vx + (yy - ay) * vy) /
max(vx * vx + vy * vy, 1e-6), 0, 1)
return np.sqrt((xx - ax - t * vx) ** 2 +
(yy - ay - t * vy) ** 2), t
# Soft contact/cast shadow from the nonluminous hilt.
offset = np.array([0.006 * w, 0.008 * h], np.float32)
sd, _ = capsule_distance(*(start + offset), *(emitter + offset))
shadow = 0.09 * np.exp(-0.5 * (sd / max(1.0, 0.008 * scale)) ** 2)
shadow *= (yy &gt; 0.565 * h)
blend([52, 57, 60], shadow)
# Daylight-visible energy blade with a bright core and localized bloom.
blade_start = emitter + direction * (0.003 * scale)
blade_end = blade_start + direction * (0.176 * scale)
blade_distance, blade_t = capsule_distance(*blade_start, *blade_end)
broad_glow = 0.19 * np.exp(-0.5 * (blade_distance / max(1.0, 0.012 * scale)) ** 2)
close_glow = 0.40 * np.exp(-0.5 * (blade_distance / max(1.0, 0.0053 * scale)) ** 2)
glow = np.clip(broad_glow + close_glow, 0, 0.68)
# Screen blending makes the halo luminous without flattening the asphalt.
glow_color = np.array([20, 145, 255], np.float32)
canvas = 255 - (255 - canvas) * (1 - glow[:, :, None] * glow_color / 255)
blade_radius = scale * (0.0041 - 0.0007 * blade_t)
edge_alpha = np.clip((blade_radius + antialias - blade_distance) /
(2 * antialias), 0, 1)
variation = rng.normal(0, 0.85, (h, w)).astype(np.float32)
blade_color = np.empty((h, w, 3), np.float32)
blade_color[:, :, 0] = 151 + 12 * (1 - blade_t) + variation
blade_color[:, :, 1] = 225 + variation
blade_color[:, :, 2] = 255
blend(blade_color, edge_alpha)
core_radius = max(0.65, 0.0019 * scale)
core_alpha = np.clip((core_radius + antialias * 0.6 - blade_distance) /
(antialias * 1.2), 0, 1)
blend([241, 252, 255], core_alpha * 0.98)
# Cylindrical metallic handle, perspective-width changes, and machined grooves.
radius = np.full((h, w), 0.0068 * scale, np.float32)
radius += (fraction &gt; 0.80) * (0.0017 * scale)
radius += (fraction &lt; 0.10) * (0.0006 * scale)
side_alpha = np.clip((radius + antialias - np.abs(transverse)) /
(2 * antialias), 0, 1)
end_alpha = np.minimum(np.clip((longitudinal + antialias) / (2 * antialias), 0, 1),
np.clip((handle_length - longitudinal + antialias) /
(2 * antialias), 0, 1))
handle_alpha = side_alpha * end_alpha
q = np.clip(transverse / np.maximum(radius, 1), -1, 1)
cylindrical = np.sqrt(np.maximum(0, 1 - q * q))
specular = np.exp(-((q + 0.43) / 0.19) ** 2)
metal_value = 69 + 107 * cylindrical + 65 * specular
grip_section = (fraction &gt; 0.16) &amp; (fraction &lt; 0.73)
metal_value = np.where(grip_section,
36 + 49 * cylindrical + 31 * specular, metal_value)
groove = np.zeros((h, w), np.float32)
for center in [0.13, 0.23, 0.34, 0.45, 0.56, 0.67, 0.77, 0.87, 0.96]:
groove = np.maximum(groove, np.exp(-((fraction - center) / 0.018) ** 2))
metal_value *= 1 - 0.52 * groove
metal_value += rng.normal(0, 1.25, (h, w)).astype(np.float32)
handle_color = np.stack([metal_value * 0.94, metal_value * 0.98,
metal_value * 1.03], axis=2)
blend(np.clip(handle_color, 0, 255), handle_alpha)
# Small recessed activation control.
button_center = start + direction * (handle_length * 0.67) - perpendicular * (scale * 0.0015)
button_distance = np.sqrt((xx - button_center[0]) ** 2 + (yy - button_center[1]) ** 2)
button_radius = max(0.8, 0.0020 * scale)
surround = np.clip((button_radius * 1.65 + antialias - button_distance) /
(2 * antialias), 0, 1) * handle_alpha
blend([32, 37, 42], surround)
button_alpha = np.clip((button_radius + antialias * 0.5 - button_distance) /
antialias, 0, 1) * handle_alpha
blend([177, 47, 34], button_alpha)
# The emitter catches a faint blue reflection from the blade.
emitter_reflection = np.exp(-((fraction - 0.985) / 0.030) ** 2) * handle_alpha
blend([127, 210, 245], emitter_reflection * 0.63)
# Keep skin in front of the newly drawn hilt, as in the original grip.
skin_alpha = cv2.GaussianBlur(skin.astype(np.float32) / 255,
(0, 0), max(0.35, 0.0009 * scale))
skin_alpha[skin &gt; 0] = 1
canvas = canvas * (1 - skin_alpha[:, :, None]) + rgb * skin_alpha[:, :, None]
return Image.fromarray(np.clip(np.rint(canvas), 0, 255).astype(np.uint8), &#x27;RGB&#x27;)</pre></details></article></main><script>setTimeout(()=>location.reload(),120000)</script></body></html>