diff --git "a/index.html" "b/index.html" --- "a/index.html" +++ "b/index.html" @@ -1,87 +1,221 @@ Qwen Pixel-Edit · 实验进度
QWEN PIXEL-EDIT · ONE-SHOT

现在进展到哪里了?

输入格式已统一,RL 已完成真实更新,新一轮 SFT 对照已出结果。

更新时间:2026-11-27 13:47:14 北京时间 · · 自动刷新 120 秒

-

InstructPix2Pix 已停用

按用户要求,不再采集或构造该来源的RFT/TI。已经生成的原始记录、图片与旧实验保留;历史库存数字包含这些存档,新训练快照排除该来源。

持续构造 SFT 数据

任务池 42,569 个 · 本次合格轨迹 8,787 条 · 对应 8,787 个任务

生产心跳:2026-11-27T13:46:25.405414+08:00 · 白天并发配置。任务池会自动读取新数据,不在 128 条或 10k 行时停止。

Teacher / 方式运行或等待 API / 并发上限待处理已完成合格轨迹待重试
GPT-5.5 · RFT0 / 808,0301,78449
GPT-6.1-Sol · RFT8 / 814,82112,8645,1462222
GPT-5.6-Terra · RFT0 / 401,06224734
GPT-5.6-Luna · RFT0 / 401,03821923
GPT-6.1-Sol · TI4 / 853,938337582
GPT-6.2-Sol · RFT4 / 412,1631,9801,05418

自动扩库:任务池已足够,随生成进度继续补充。已接入任务:{"anyedit": 14559, "maskedit_scene": 4804, "maskedit_en": 2266, "maskedit_cn": 523, "ultraedit": 11528, "instructpix2pix": 2902, "sciforma": 7362, "magicbrush": 2491}。

已导出 4,728 条新 SFT 轨迹。原有 8,601 / 12,006 条对照训练集保持冻结,新增数据单独保存,用于后续规模实验。

合格要求:一次 teacher 输出、程序过滤、执行、完整目标区域的图像 judge 和重用执行检查通过。API 或 judge 错误会重试,不计为成功样本。任务按原图内容分组,排除官方 MagicBrush dev 与现有验证图片的内容重叠。TI 在 source-only 失败后补救,学生输入只包含原图和指令。

英文 TI:独立补充训练样本

RFT成功的任务也构造TI,保留两种方法的合格轨迹。新数据只保留英文任务和监督文本;旧实验保留用于复现,中文子集不进入新训练快照。北京时间工作日18:00–09:00、周末全天提高Sol并发。1:1为训练配比对照目标,当前通过率不被人为调整。

独立TI合格样本 2,158 · 生产心跳 2026-11-27T13:38:15.381144+08:00

TI teacher运行/并发上限待处理已完成合格待重试
GPT-6.1-Sol8/817,09010,6463,2822320
GPT-6.2-Sol3/416,1296,3442,195173

非工作时间补充:61/62-Sol TI

状态 waiting_for_off_peak · 心跳 2026-11-27T13:46:36.567259+08:00。仅北京时间工作日18:00–09:00或周末发起新请求;白天保留排队中的调用。优先科研图、文字布局、区域编辑和MagicBrush。

Teacher运行或等待 / 上限待构造合格轨迹
GPT-6.1-Sol0/019,5532,961
GPT-6.2-Sol0/016,5681,924

每个teacher增加至多16个夜间请求槽;额外候选使用独立ID,不改写旧轨迹。并发上限包含可能仍在API队列中的请求,不代表完成速度。

当前英文SFT库存:按样本行数统计,可相加

数据来源RFT行数TI行数合计
anyedit1,1044081,512
instructpix2pix1,0143461,360
magicbrush5,2383,6158,853
maskedit_en6856201,305
maskedit_scene6906231,313
sciforma1,8911472,038
ultraedit3,7956834,478

英文SFT行数 20,859 = RFT 14,417 + TI 6,442;独立任务覆盖 14,256。行数包含不同teacher轨迹和增强版本,后续冻结训练快照另做完全相同监督内容的去重。

展示样本的质量门槛

下方是历史候选的图像展示:自建图像judge通过、画质与保留评分至少4/5。页面顶部的新版严格库存还要求指令遵循、完整编辑范围至少4/5和完整目标判定。InstructPix2Pix已停用,旧记录存档保留,新库存排除。

质量筛选后的候选:remove the website text

magicbrush · GPT-6.2-Sol · RFT · 自建图像judge通过 · 画质5/5 · 保留5/5

原图
单次 teacher 代码执行
数据集目标
完整 teacher 计划与代码
{
+.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}}
QWEN PIXEL-EDIT · ONE-SHOT

现在进展到哪里了?

输入格式已统一,RL 已完成真实更新,新一轮 SFT 对照已出结果。

更新时间:2026-11-27 13:50:22 北京时间 · · 自动刷新 120 秒

+

InstructPix2Pix 已停用

按用户要求,不再采集或构造该来源的RFT/TI。已经生成的原始记录、图片与旧实验保留;历史库存数字包含这些存档,新训练快照排除该来源。

持续构造 SFT 数据

任务池 42,569 个 · 本次合格轨迹 8,792 条 · 对应 8,792 个任务

生产心跳:2026-11-27T13:48:55.249072+08:00 · 白天并发配置。任务池会自动读取新数据,不在 128 条或 10k 行时停止。

Teacher / 方式运行或等待 API / 并发上限待处理已完成合格轨迹待重试
GPT-5.5 · RFT0 / 808,0301,78449
GPT-6.1-Sol · RFT6 / 814,81912,8705,1472221
GPT-5.6-Terra · RFT0 / 401,06224734
GPT-5.6-Luna · RFT0 / 401,03821923
GPT-6.1-Sol · TI1 / 833,943339581
GPT-6.2-Sol · RFT3 / 412,1561,9851,05618

自动扩库:任务池已足够,随生成进度继续补充。已接入任务:{"anyedit": 14559, "maskedit_scene": 4804, "maskedit_en": 2266, "maskedit_cn": 523, "ultraedit": 11528, "instructpix2pix": 2902, "sciforma": 7362, "magicbrush": 2491}。

已导出 4,728 条新 SFT 轨迹。原有 8,601 / 12,006 条对照训练集保持冻结,新增数据单独保存,用于后续规模实验。

合格要求:一次 teacher 输出、程序过滤、执行、完整目标区域的图像 judge 和重用执行检查通过。API 或 judge 错误会重试,不计为成功样本。任务按原图内容分组,排除官方 MagicBrush dev 与现有验证图片的内容重叠。TI 在 source-only 失败后补救,学生输入只包含原图和指令。

英文 TI:独立补充训练样本

RFT成功的任务也构造TI,保留两种方法的合格轨迹。新数据只保留英文任务和监督文本;旧实验保留用于复现,中文子集不进入新训练快照。北京时间工作日18:00–09:00、周末全天提高Sol并发。1:1为训练配比对照目标,当前通过率不被人为调整。

独立TI合格样本 2,158 · 生产心跳 2026-11-27T13:38:15.381144+08:00

TI teacher运行/并发上限待处理已完成合格待重试
GPT-6.1-Sol8/817,09010,6463,2822320
GPT-6.2-Sol3/416,1296,3442,195173

非工作时间补充:61/62-Sol TI

状态 waiting_for_off_peak · 心跳 2026-11-27T13:49:55.042213+08:00。仅北京时间工作日18:00–09:00或周末发起新请求;白天保留排队中的调用。优先科研图、文字布局、区域编辑和MagicBrush。

Teacher运行或等待 / 上限待构造合格轨迹
GPT-6.1-Sol0/019,5532,961
GPT-6.2-Sol0/016,5681,924

每个teacher增加至多16个夜间请求槽;额外候选使用独立ID,不改写旧轨迹。并发上限包含可能仍在API队列中的请求,不代表完成速度。

当前英文SFT库存:按样本行数统计,可相加

数据来源RFT行数TI行数合计
anyedit1,1044081,512
instructpix2pix1,0143461,360
magicbrush5,2383,6158,853
maskedit_en6856201,305
maskedit_scene6906231,313
sciforma1,8911472,038
ultraedit3,7956834,478

英文SFT行数 20,859 = RFT 14,417 + TI 6,442;独立任务覆盖 14,256。行数包含不同teacher轨迹和增强版本,后续冻结训练快照另做完全相同监督内容的去重。

展示样本的质量门槛

下方是历史候选的图像展示:自建图像judge通过、画质与保留评分至少4/5。页面顶部的新版严格库存还要求指令遵循、完整编辑范围至少4/5和完整目标判定。InstructPix2Pix已停用,旧记录存档保留,新库存排除。

质量筛选后的候选:Let the skateboard stay on grass.

magicbrush · GPT-6.1-Sol · RFT · 自建图像judge通过 · 画质4/5 · 保留4/5

原图
单次 teacher 代码执行
数据集目标
完整 teacher 计划与代码
{
   "visual_evidence": [
-    "A small dark website address sits against the white background at the bottom-left edge.",
-    "The kite and its curved string of lettering are separate from the website address.",
-    "The area immediately above the address is blank and provides matching background pixels."
-  ],
-  "target_object": "The website address at the bottom left",
-  "target_region": "The narrow strip along the bottom-left edge, spanning roughly the leftmost 23% of the image width.",
-  "editing_intent": "Remove the website address, including its faint letter edges, so the white background looks continuous.",
-  "editing_plan": [
-    "Compare the address area with a clean white patch directly above it to identify the text pixels.",
-    "Expand the mask slightly to cover antialiased edges and nearby compression traces.",
-    "Copy pixels from the clean patch, match their brightness to the adjacent background, and feather the outer edge of the repair."
-  ],
-  "preservation_constraints": [
-    "Keep the kite and its curved lettering unchanged.",
-    "Leave all pixels outside the repair mask unchanged.",
-    "Preserve the original dimensions and framing."
+    "A black dog lies across a skateboard.",
+    "The skateboard has a dark deck, a visible wooden edge, and a pale yellow wheel.",
+    "Light-colored paving surrounds the dog and skateboard.",
+    "A decorative border surrounds the photograph."
+  ],
+  "target_object": "The paved ground surrounding and beneath the skateboard",
+  "target_region": "The photograph interior, excluding the dog, skateboard, wheel, and decorative border",
+  "editing_intent": "Replace the paving with textured grass so the skateboard rests on grass while retaining the dog and skateboard.",
+  "editing_plan": [
+    "Trace separate masks for the dog, skateboard deck, and visible wheel using relative coordinates.",
+    "Refine the dog's silhouette using the dark fur along its boundary.",
+    "Synthesize a natural lawn using multiscale color variation, overlapping fine grass blades, highlights, and photographic grain.",
+    "Add soft cast shadows beneath the dog and skateboard and a tighter contact shadow beneath the wheel.",
+    "Blend the grass around the preserved foreground and leave the decorative border unchanged."
+  ],
+  "preservation_constraints": [
+    "Preserve the dog's appearance, pose, eyes, and fur.",
+    "Preserve the skateboard's shape, deck texture, wooden edge, and visible wheel.",
+    "Do not move or resize the foreground objects.",
+    "Preserve the decorative border and original image dimensions."
   ]
 }
 
 def edit(image):
-    import math
-    import cv2
     import numpy as np
+    import cv2
     from PIL import Image
 
+    image = image.convert('RGB')
     w, h = image.size
-    rgb = np.array(image.convert('RGB'), dtype=np.uint8)
-    x1 = min(w, max(1, math.ceil(0.23 * w)))
-    y0 = int(0.938 * h)
-    y1 = min(h, math.ceil(0.988 * h))
-    shift = min(y0, max(1, round(0.060 * h)))
-    patch = rgb[y0 - shift:y1 - shift, :x1].astype(np.float32)
-    target = rgb[y0:y1, :x1].astype(np.float32)
-
-    # Match the patch to the background using clean pixels to the right.
-    ref0 = max(x1, math.ceil(0.246 * w))
-    ref1 = min(w, math.ceil(0.40 * w))
-    if ref1 > ref0:
-        here = rgb[y0:y1, ref0:ref1].astype(np.float32)
-        above = rgb[y0 - shift:y1 - shift, ref0:ref1].astype(np.float32)
-        offset = np.median(here - above, axis=(0, 1))
-        patch = np.clip(patch + offset, 0, 255)
-
-    # Include faint lettering, then grow the mask over the antialiased fringe.
-    delta = cv2.cvtColor(patch, cv2.COLOR_RGB2GRAY) - cv2.cvtColor(target, cv2.COLOR_RGB2GRAY)
-    seeds = (delta > 2.5).astype(np.uint8)
-    radius = max(1, round(0.004 * min(w, h)))
-    kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (2 * radius + 1, 2 * radius + 1))
-    core = cv2.dilate(seeds, kernel)
-    if not core.any():
-        return image.copy()
-
-    # Feather only outside the solid mask; keep the copied background texture.
-    distance = cv2.distanceTransform(1 - core, cv2.DIST_L2, cv2.DIST_MASK_PRECISE)
-    alpha = np.clip(1.0 - distance / max(1.5, 0.005 * min(w, h)), 0.0, 1.0)
-    alpha = (alpha * alpha * (3.0 - 2.0 * alpha))[..., None]
-    rgb[y0:y1, :x1] = np.rint(target * (1.0 - alpha) + patch * alpha).astype(np.uint8)
-    result = Image.fromarray(rgb)
-    if 'A' in image.getbands():
-        result.putalpha(image.getchannel('A'))
-    return result

质量筛选后的候选:remove the zebra in the back

magicbrush · GPT-6.2-Sol · RFT · 自建图像judge通过 · 画质4/5 · 保留5/5

原图
单次 teacher 代码执行
数据集目标
完整 teacher 计划与代码
{
+    src = np.asarray(image).copy()
+    d = float(min(w, h))
+    rng = np.random.default_rng(47)
+    ss = 2
+    W, H = w * ss, h * ss
+
+    def polygon(points):
+        mask = np.zeros((H, W), np.uint8)
+        vertices = np.array([[round(x * (W - 1)), round(y * (H - 1))] for x, y in points], np.int32)
+        cv2.fillPoly(mask, [vertices], 255, lineType=cv2.LINE_AA)
+        return cv2.resize(mask, (w, h), interpolation=cv2.INTER_AREA).astype(np.float32) / 255.0
+
+    def smooth_noise(nx, ny):
+        a = rng.standard_normal((ny, nx)).astype(np.float32)
+        a = cv2.resize(a, (W, H), interpolation=cv2.INTER_CUBIC)
+        a -= a.mean()
+        a /= max(float(a.std()), 1e-6)
+        return a
+
+    # A textured ground layer, with no reused paving lines.
+    broad = smooth_noise(5, 5)
+    medium = smooth_noise(17, 17)
+    fine = smooth_noise(max(24, int(w * 0.19)), max(24, int(h * 0.19)))
+    micro = smooth_noise(max(32, int(w * 0.63)), max(32, int(h * 0.63)))
+    yy = np.linspace(0, 1, H, dtype=np.float32)[:, None]
+    light = 3.5 * (1.0 - yy) + 4.0 * broad + 3.0 * medium
+    base = np.empty((H, W, 3), np.float32)
+    base[:, :, 0] = 98 + light + 6.0 * medium + 5.5 * fine + 2.6 * micro
+    base[:, :, 1] = 126 + light + 5.0 * medium + 7.0 * fine + 3.0 * micro
+    base[:, :, 2] = 51 + light * 0.55 + 3.5 * medium + 3.8 * fine + 1.8 * micro
+    base[:, :, 0] += 4.0 * broad
+    base[:, :, 2] += 2.5 * broad
+    grass = np.clip(base, 14, 220).astype(np.uint8)
+
+    # Fine curved blades are rendered above the mottled canopy at double resolution.
+    count = max(2000, int(w * h * 0.145))
+    xs = rng.uniform(-0.015 * W, 1.015 * W, count)
+    ys = rng.uniform(-0.015 * H, 1.035 * H, count)
+    angles = rng.normal(0.0, 0.88, count)
+    flattened = rng.random(count) < 0.18
+    angles[flattened] = rng.uniform(-np.pi, np.pi, int(flattened.sum()))
+    lengths = rng.uniform(0.0035, 0.0175, count) * d * ss
+    lengths *= 0.80 + 0.30 * np.clip(ys / H, 0, 1)
+    widths = rng.uniform(0.0006, 0.0016, count) * d * ss
+    kinds = rng.random(count)
+    bends = rng.normal(0.0, 0.19, count)
+    offsets = rng.normal(0.0, 6.0, count)
+
+    for i in range(count):
+        x, y = xs[i], ys[i]
+        a, length = angles[i], lengths[i]
+        vx, vy = np.sin(a) * length, -np.cos(a) * length
+        bx, by = np.cos(a) * bends[i] * length, np.sin(a) * bends[i] * length
+        p0 = (int(round(x)), int(round(y)))
+        p1 = (int(round(x + vx * 0.43 + bx)), int(round(y + vy * 0.43 + by)))
+        p2 = (int(round(x + vx * 0.78 + bx * 0.65)), int(round(y + vy * 0.78 + by * 0.65)))
+        p3 = (int(round(x + vx)), int(round(y + vy)))
+        ix, iy = int(np.clip(x, 0, W - 1)), int(np.clip(y, 0, H - 1))
+        c = base[iy, ix].copy()
+        k = kinds[i]
+        if k < 0.35:
+            c += np.array([-27, -29, -15], np.float32)
+        elif k < 0.78:
+            c += np.array([4, 8, -2], np.float32)
+        elif k < 0.965:
+            c += np.array([28, 30, 12], np.float32)
+        else:
+            c += np.array([44, 23, 24], np.float32)
+        c += offsets[i]
+        c = np.clip(c, 15, 213)
+        color = tuple(int(v) for v in c)
+        width = max(1, int(round(widths[i])))
+        if width > 1 and k > 0.35:
+            dark = tuple(int(v) for v in np.clip(c * 0.69, 10, 200))
+            cv2.line(grass, (p0[0] + 1, p0[1] + 1), (p2[0] + 1, p2[1] + 1), dark, width + 1, cv2.LINE_AA)
+        cv2.line(grass, p0, p1, color, width, cv2.LINE_AA)
+        cv2.line(grass, p1, p2, color, max(1, width - 1), cv2.LINE_AA)
+        tip = tuple(int(v) for v in np.clip(c + np.array([7, 9, 3]), 10, 225))
+        cv2.line(grass, p2, p3, tip, 1, cv2.LINE_AA)
+
+    grass = cv2.resize(grass, (w, h), interpolation=cv2.INTER_AREA).astype(np.float32)
+    grass = cv2.GaussianBlur(grass, (0, 0), max(0.12, d * 0.00038))
+    grain = rng.normal(0, 1.55, (h, w, 1)).astype(np.float32)
+    chroma = rng.normal(0, 0.55, (h, w, 3)).astype(np.float32)
+    grass = np.clip(grass + grain + chroma, 0, 255)
+
+    dog_points = [
+        (0.177,0.283),(0.185,0.263),(0.204,0.239),(0.235,0.217),
+        (0.257,0.202),(0.282,0.208),(0.320,0.195),(0.360,0.194),
+        (0.395,0.204),(0.426,0.221),(0.458,0.240),(0.482,0.249),
+        (0.508,0.273),(0.534,0.302),(0.547,0.321),(0.587,0.327),
+        (0.662,0.330),(0.704,0.337),(0.747,0.339),(0.756,0.316),
+        (0.779,0.301),(0.814,0.291),(0.850,0.290),(0.880,0.297),
+        (0.913,0.309),(0.939,0.328),(0.970,0.339),(1.000,0.361),
+        (1.000,0.596),(0.979,0.607),(0.955,0.619),(0.926,0.626),
+        (0.892,0.627),(0.861,0.622),(0.835,0.611),(0.816,0.604),
+        (0.772,0.601),(0.727,0.608),(0.675,0.611),(0.615,0.614),
+        (0.591,0.615),(0.590,0.641),(0.578,0.668),(0.554,0.689),
+        (0.526,0.704),(0.492,0.715),(0.454,0.725),(0.413,0.733),
+        (0.370,0.740),(0.335,0.753),(0.309,0.776),(0.276,0.797),
+        (0.246,0.807),(0.217,0.808),(0.192,0.805),(0.175,0.796),
+        (0.173,0.778),(0.183,0.750),(0.202,0.716),(0.222,0.692),
+        (0.258,0.668),(0.298,0.646),(0.333,0.633),(0.360,0.618),
+        (0.368,0.603),(0.360,0.582),(0.335,0.571),(0.300,0.581),
+        (0.274,0.591),(0.230,0.596),(0.228,0.574),(0.233,0.547),
+        (0.247,0.523),(0.270,0.503),(0.292,0.491),(0.279,0.484),
+        (0.263,0.472),(0.256,0.447),(0.251,0.416),(0.253,0.390),
+        (0.259,0.363),(0.245,0.386),(0.233,0.404),(0.226,0.405),
+        (0.217,0.383),(0.212,0.363),(0.208,0.338),(0.194,0.331),
+        (0.182,0.312)
+    ]
+    dog_raw = polygon(dog_points)
+    r = max(1, int(round(d * 0.003)))
+    kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (2*r+1, 2*r+1))
+    inner = cv2.erode(dog_raw, kernel)
+    outer = cv2.dilate(dog_raw, kernel)
+    lum = cv2.cvtColor(src, cv2.COLOR_RGB2GRAY).astype(np.float32)
+    fur_edge = np.clip((151.0 - lum) / 65.0, 0, 1)
+    dog = np.maximum(inner, outer * fur_edge)
+    dog = np.clip(dog, 0, 1)
+
+    board = polygon([
+        (0.171,0.637),(0.174,0.622),(0.184,0.610),(0.215,0.600),
+        (0.270,0.590),(0.303,0.578),(0.345,0.568),(0.382,0.590),
+        (0.446,0.607),(0.550,0.610),(0.648,0.606),(0.730,0.596),
+        (0.771,0.595),(0.759,0.610),(0.728,0.632),(0.691,0.659),
+        (0.647,0.686),(0.604,0.712),(0.561,0.736),(0.509,0.753),
+        (0.453,0.762),(0.403,0.762),(0.357,0.752),(0.310,0.739),
+        (0.272,0.723),(0.222,0.700),(0.197,0.683),(0.180,0.671)
+    ])
+    wheel = polygon([
+        (0.549,0.765),(0.557,0.744),(0.573,0.726),(0.590,0.719),
+        (0.613,0.722),(0.632,0.737),(0.644,0.758),(0.648,0.781),
+        (0.642,0.801),(0.629,0.820),(0.611,0.828),(0.589,0.827),
+        (0.569,0.819),(0.554,0.801),(0.547,0.783)
+    ])
+    truck = polygon([(0.566,0.735),(0.574,0.718),(0.598,0.712),
+                     (0.621,0.725),(0.609,0.750),(0.582,0.751)])
+    foreground = np.maximum.reduce([dog, board, wheel, truck])
+
+    def shifted_blur(mask, dx, dy, sigma):
+        matrix = np.array([[1,0,dx*w],[0,1,dy*h]], np.float32)
+        moved = cv2.warpAffine(mask, matrix, (w,h), flags=cv2.INTER_LINEAR,
+                               borderMode=cv2.BORDER_CONSTANT, borderValue=0)
+        return cv2.GaussianBlur(moved, (0,0), max(0.3, sigma*d))
+
+    # Shadows are applied to the new lawn, never painted over the subjects.
+    dog_shadow = shifted_blur(dog_raw, 0.009, 0.017, 0.014) * 0.25
+    board_shadow = shifted_blur(board, 0.005, 0.020, 0.010) * 0.37
+    tight_board = shifted_blur(board, 0.002, 0.006, 0.004) * 0.23
+    contact = np.zeros((h,w), np.float32)
+    cv2.ellipse(contact, (int(0.600*w), int(0.822*h)),
+                (max(1,int(0.052*w)), max(1,int(0.010*h))),
+                -8, 0, 360, 1.0, -1, cv2.LINE_AA)
+    contact = cv2.GaussianBlur(contact, (0,0), max(0.4,d*0.0045)) * 0.49
+    shadow = 1.0 - (1.0-dog_shadow)*(1.0-board_shadow)*(1.0-tight_board)*(1.0-contact)
+    grass *= (1.0 - np.clip(shadow, 0, 0.72))[:,:,None]
+
+    photo = np.zeros((h,w), np.float32)
+    x0 = int(round(0.060*w))
+    y0 = int(round(0.060*h))
+    y1 = int(round(0.944*h))
+    photo[y0:y1, x0:w] = 1.0
+    edit_alpha = photo * (1.0-foreground)
+    result = src.astype(np.float32)*(1.0-edit_alpha[:,:,None]) + grass*edit_alpha[:,:,None]
+    return Image.fromarray(np.clip(np.rint(result),0,255).astype(np.uint8), 'RGB')

质量筛选后的候选:remove the tomato

magicbrush · GPT-6.2-Sol · RFT · 自建图像judge通过 · 画质4/5 · 保留5/5

原图
单次 teacher 代码执行
数据集目标
完整 teacher 计划与代码
{
   "visual_evidence": [
-    "The smaller zebra is in the upper center, facing away, with its tail extending to the right.",
-    "The rear zebra's legs meet the upper edge of the larger foreground zebra.",
-    "The surrounding ground is mottled brown soil with small clods and sparse dry grass."
+    "A cluster of red-orange tomatoes sits in the small white bowl behind the broccoli.",
+    "The bowl’s white front rim passes in front of the lower edges of the tomatoes.",
+    "Exposed areas of the bowl interior show soft shading and fine image grain."
   ],
-  "target_object": "The smaller zebra in the background, including its ears, legs, and tail.",
-  "target_region": "The upper-center silhouette behind the foreground zebra, extending rightward around the tail.",
-  "editing_intent": "Remove the rear zebra and reconstruct the exposed ground using texture sampled from the same image.",
+  "target_object": "The visible tomatoes in the small white bowl behind the broccoli",
+  "target_region": "Upper-left of center, inside the white bowl between the drink cup and the back of the sandwich plate.",
+  "editing_intent": "Remove the tomatoes and reconstruct the exposed bowl interior so the bowl appears empty.",
   "editing_plan": [
-    "Trace the rear zebra and clip the removal mask at the foreground zebra's back.",
-    "Select clean ground patches at similar heights and match them to the soil around the removal area.",
-    "Quilt overlapping patches along low-error seams, adjusting their broad shading while retaining the original soil texture.",
-    "Feather the outer edge into the surrounding soil without blending over the foreground zebra."
+    "Trace the tomatoes using their red-orange color within the bowl, including the thin fringe along their edges.",
+    "Inpaint the masked area and refine its shading using the adjacent bowl surface as a boundary guide.",
+    "Copy fine-grain texture from clean sections of the same bowl and feather the repair into the original pixels."
   ],
   "preservation_constraints": [
-    "Keep the foreground zebra, including its upper outline, mane, and stripe pattern, unchanged.",
-    "Leave the ground and shadows outside the local removal area unchanged.",
-    "Preserve the original image dimensions."
+    "Keep the shape and visible front rim of the white bowl intact.",
+    "Preserve the overlapping broccoli, the sandwich, the drink cup, and the contents of the bowl on the right.",
+    "Leave pixels outside the localized tomato mask unchanged."
   ]
 }
 
@@ -91,271 +225,271 @@ def edit(image):
     from PIL import Image
 
     w, h = image.size
-    scale = float(min(w, h))
-    src = np.asarray(image.convert('RGB'), dtype=np.float32)
-    rng = np.random.default_rng(71)
-    yy, xx = np.indices((h, w))
-    coords = np.array([w - 1, h - 1], dtype=np.float32)
-
-    # Include the fine hair at the ears and the outer wisps of the tail.
-    outline = [(.294,.088),(.306,.079),(.325,.083),(.337,.090),
-        (.354,.080),(.382,.073),(.399,.075),(.411,.096),(.417,.123),
-        (.408,.159),(.425,.167),(.457,.170),(.483,.179),(.504,.197),
-        (.516,.230),(.545,.237),(.581,.241),(.613,.252),(.644,.265),
-        (.665,.284),(.682,.308),(.691,.335),(.690,.372),(.676,.375),
-        (.657,.347),(.635,.327),(.604,.311),(.572,.300),(.543,.295),
-        (.524,.293),(.534,.328),(.537,.364),(.531,.393),(.515,.423),
-        (.497,.448),(.482,.477),(.469,.516),(.459,.541),(.446,.565),
-        (.373,.569),(.368,.544),(.357,.496),(.343,.464),(.327,.433),
-        (.312,.407),(.300,.379),(.294,.347),(.295,.309),(.302,.279),
-        (.307,.253),(.311,.225),(.320,.205),(.322,.176),(.319,.150),
-        (.307,.138),(.297,.120),(.290,.102)]
-    core = np.zeros((h, w), np.uint8)
-    cv2.fillPoly(core, [np.rint(np.asarray(outline) * coords).astype(np.int32)], 1)
-
-    # The legs disappear behind this edge; protect the near animal at that contact.
-    xn = np.arange(w) / max(1, w - 1)
-    back = np.interp(xn,
-        [.28,.31,.34,.36,.38,.398,.414,.432,.449,.468,.490,.52,.55,.59,.64,.71,.79,.86],
-        [.602,.589,.578,.567,.562,.556,.555,.553,.552,.553,.556,.558,.556,.555,.550,.545,.539,.551])
-    protected = yy >= np.rint(back[None, :] * (h - 1))
-    core[protected] = 0
-    dist = cv2.distanceTransform(1 - core, cv2.DIST_L2, cv2.DIST_MASK_PRECISE)
-    feather = max(1.5, .0065 * scale)
-    alpha = np.clip(1 - dist / feather, 0, 1)
-    alpha = (alpha * alpha * (3 - 2 * alpha)).astype(np.float32)
-    alpha[protected] = 0
-    hole = alpha > 0
-
-    # Use only bare ground as an exemplar, with a buffer from both animals.
-    ground_edge = np.interp(xn, [0,.07,.16,.25,.34,.41,.48,.58,.72,.83,1],
-        [.705,.681,.631,.590,.556,.552,.549,.548,.534,.522,.516])
-    ground = (yy < ground_edge[None, :] * (h - 1)) & ~protected
-    known = ground & ~hole
-    donor = ground & (dist > feather + .010 * scale)
-    gmask = known.astype(np.float32)
-    sigma = max(1.0, .045 * scale)
-    numerator = cv2.GaussianBlur(src * gmask[..., None], (0, 0), sigma)
-    denominator = cv2.GaussianBlur(gmask, (0, 0), sigma)
-    guide = numerator / np.maximum(denominator[..., None], 1e-6)
-
-    p = min(w, h, max(7, int(round(.085 * scale))))
-    overlap = max(2, int(round(.31 * p)))
-    step = p - overlap
-    spacing = max(1, int(round(.0075 * scale)))
-    sy, sx = np.meshgrid(np.arange(0, h - p + 1, spacing),
-                         np.arange(0, w - p + 1, spacing), indexing='ij')
-    sy, sx = sy.ravel(), sx.ravel()
-    integ = cv2.integral((~donor).astype(np.uint8))
-    clean = (integ[sy+p, sx+p] - integ[sy, sx+p] - integ[sy+p, sx] + integ[sy, sx]) == 0
-    sy, sx = sy[clean], sx[clean]
-    sample = np.arange(1, p, max(1, p // 11))
-    iy, ix = np.meshgrid(sample, sample, indexing='ij')
-    iy, ix = iy.ravel(), ix.ravel()
-    db = src[sy[:, None] + iy, sx[:, None] + ix]
-    db_guide = guide[sy[:, None] + iy, sx[:, None] + ix]
-    reuse = np.zeros(len(sy), np.float32)
-    canvas = src.copy()
-    painted = np.zeros((h, w), bool)
-
-    def grid(lo, hi, length):
-        positions = [min(length - p, max(0, lo - overlap))]
-        while positions[-1] + p < hi:
-            positions.append(min(length - p, positions[-1] + step))
-        return positions
-
-    def min_seam(cost):
-        nr, nc = cost.shape
-        columns = np.arange(nc)
-        parent = np.zeros((nr, nc), np.int32)
-        accum = cost[0].copy()
-        for r in range(1, nr):
-            opts = np.stack((np.r_[np.inf, accum[:-1]], accum, np.r_[accum[1:], np.inf]))
-            best = np.argmin(opts, axis=0)
-            parent[r] = columns + best - 1
-            accum = cost[r] + opts[best, columns]
-        path = np.empty(nr, np.int32)
-        path[-1] = int(np.argmin(accum))
-        for r in range(nr - 1, 0, -1):
-            path[r - 1] = parent[r, path[r]]
-        return path
-
-    bx, by, bw, bh = cv2.boundingRect(hole.astype(np.uint8))
-    xs, ys = grid(bx, bx + bw, w), grid(by, by + bh, h)
-    for j, y in enumerate(ys):
-        for i, x in enumerate(xs):
-            region = np.s_[y:y+p, x:x+p]
-            active = hole[region]
-            if not np.any(active):
-                continue
-            tile = canvas[region]
-            g = guide[region]
-            old = painted[region]
-            context = known[region]
-            weights = old.astype(np.float32) + context.astype(np.float32) * (.55 + .30 * np.exp(-dist[region] / max(1., .028 * scale)))
-            near = np.flatnonzero(np.abs(sy - y) <= .135 * scale)
-            if near.size == 0:
-                near = np.arange(len(sy))
-            prior = 92 * ((sy[near] - y) / (.135 * scale)) ** 2
-            prior += 16 * ((sx[near] - x) / (.55 * scale)) ** 2
-            prior += reuse[near] + rng.uniform(0, 11, near.size)
-            sw = weights[iy, ix]
-            if sw.sum() > 0:
-                proposal = db[near] + np.clip(g[iy, ix][None, ...] - db_guide[near], -16, 16)
-                delta = proposal - tile[iy, ix][None, ...]
-                coarse = prior + np.sum(np.mean(delta * delta, axis=2) * sw[None, :], axis=1) / sw.sum()
-            else:
-                coarse = prior
-            shortlist = np.argsort(coarse)[:9]
-            best_score = float('inf')
-            for k in shortlist:
-                n = near[k]
-                donor_region = np.s_[sy[n]:sy[n]+p, sx[n]:sx[n]+p]
-                patch = src[donor_region] + np.clip(g - guide[donor_region], -16, 16)
-                cost = np.mean((tile - patch) ** 2, axis=2)
-                score = prior[k] + np.sum(cost * weights) / max(1., float(weights.sum()))
-                if score < best_score:
-                    best_score, chosen, winner, error = score, n, patch, cost
-            dr2 = (sy - sy[chosen]) ** 2 + (sx - sx[chosen]) ** 2
-            reuse += 140 * np.exp(-dr2 / (2 * (.046 * scale) ** 2))
-
-            # Keep the previous tile on its side of each minimum-error overlap cut.
-            keep = np.zeros((p, p), bool)
-            seam_cost = cv2.blur(np.where(old, error, 22.).astype(np.float32), (3, 3))
-            if i:
-                ov = p - (x - xs[i-1])
-                if ov > 1 and np.any(old[:, :ov]):
-                    path = min_seam(seam_cost[:, :ov])
-                    keep[:, :ov] |= np.arange(ov)[None, :] < path[:, None]
-            if j:
-                ov = p - (y - ys[j-1])
-                if ov > 1 and np.any(old[:ov, :]):
-                    path = min_seam(seam_cost[:ov, :].T)
-                    keep[:ov, :] |= np.arange(ov)[:, None] < path[None, :]
-            keep &= old
-            old_weight = cv2.GaussianBlur(keep.astype(np.float32), (3, 3), .55) * old
-            merged = winner * (1 - old_weight[..., None]) + tile * old_weight[..., None]
-            tile[active] = merged[active]
-            old[active] = True
+    rgb = np.asarray(image.convert('RGB')).copy()
+    s = 0.001 * min(w, h)
+    x0, x1 = round(.176*w), round(.463*w)
+    y0, y1 = round(.233*h), round(.332*h)
+    src = np.ascontiguousarray(rgb[y0:y1, x0:x1])
+    a = src.astype(np.float32)
+    ch, cw = src.shape[:2]
 
-    out = src.copy()
-    a = alpha[hole, None]
-    out[hole] = (1 - a) * src[hole] + a * canvas[hole]
-    edited = Image.fromarray(np.clip(np.rint(out), 0, 255).astype(np.uint8))
-    if 'A' in image.getbands():
-        edited.putalpha(image.getchannel('A'))
-    return edited

质量筛选后的候选:remove the fire hydrant

magicbrush · GPT-6.2-Sol · RFT · 自建图像judge通过 · 画质4/5 · 保留5/5

原图
单次 teacher 代码执行
数据集目标
完整 teacher 计划与代码
{
+    def poly(points):
+        out = np.zeros((ch, cw), np.uint8)
+        p = np.array([(round(x*w)-x0, round(y*h)-y0) for x, y in points], np.int32)
+        cv2.fillPoly(out, [p], 1)
+        return out
+
+    def disk(radius):
+        q = max(1, round(radius*s))
+        return cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (2*q+1, 2*q+1))
+
+    search = poly([(.195,.300),(.211,.287),(.241,.288),(.252,.275),(.265,.262),(.285,.258),(.306,.249),(.334,.249),(.351,.256),(.357,.264),(.365,.253),(.383,.249),(.401,.254),(.415,.271),(.417,.282),(.402,.291),(.374,.299),(.344,.306),(.301,.311),(.246,.314),(.207,.312)])
+    r, g, b = a.transpose(2, 0, 1)
+    green = (g-r > 5) & (g-b > 20)
+    red = (r-g > 17) & (r-b > 20) & (r > 95) & (search != 0)
+    fringe = (r-g > 5) & (r-b > 8) & (search != 0) & ~green
+    seed = cv2.morphologyEx(red.astype(np.uint8), cv2.MORPH_CLOSE, disk(1.4))
+    contours, _ = cv2.findContours(seed, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
+    core = np.zeros_like(seed)
+    for contour in contours:
+        if cv2.contourArea(contour) >= max(2, 6*s*s):
+            cv2.drawContours(core, [contour], -1, 1, cv2.FILLED)
+    for _ in range(2):
+        core |= cv2.dilate(core, disk(1.2)) & fringe.astype(np.uint8)
+    core = cv2.morphologyEx(core, cv2.MORPH_CLOSE, disk(1.3))
+    core[green] = 0
+    hole = (cv2.dilate(core, disk(2.2)) != 0) & ~green
+    mask = hole.astype(np.uint8)
+
+    # Initialize the hidden bowl surface from the visible pixels around the mask.
+    initial = cv2.inpaint(src, mask*255, max(2.0, 4*s), cv2.INPAINT_TELEA).astype(np.float32)
+    sigma = max(.65, 1.25*s)
+    initial = cv2.GaussianBlur(initial, (0, 0), sigma)
+    valid = (~hole & ~green).astype(np.float32)
+    known_weight = cv2.GaussianBlur(valid, (0, 0), sigma)
+    known_color = cv2.GaussianBlur(a * valid[..., None], (0, 0), sigma)
+    known_color /= np.maximum(known_weight, .001)[..., None]
+    known_color = np.where((known_weight > .04)[..., None], known_color, initial)
+    surface = np.where(hole[..., None], initial, known_color)
+
+    # Smooth the filled shading against the cleaned bowl colors, not the broccoli.
+    kernel = np.array([[0, .8, 0], [1.2, 0, 1.2], [0, .8, 0]], np.float32)
+    usable = (~green).astype(np.float32)
+    denominator = np.maximum(cv2.filter2D(usable, -1, kernel), .001)
+    for _ in range(int(np.clip(390*s*s, 130, 850))):
+        neighbors = cv2.filter2D(surface * usable[..., None], -1, kernel)
+        surface[hole] = .12*surface[hole] + .88*neighbors[hole]/denominator[hole, None]
+
+    # Harvest small high-frequency patches from clean, even sections of this bowl.
+    band = poly([(.187,.288),(.211,.274),(.250,.261),(.303,.249),(.354,.241),(.405,.242),(.439,.248),(.451,.259),(.448,.270),(.423,.283),(.392,.295),(.350,.305),(.287,.315),(.231,.315),(.204,.308),(.190,.299)])
+    smooth = cv2.GaussianBlur(a, (0, 0), max(.6, 1.05*s))
+    grain = np.clip(a-smooth, -16, 16)
+    lum = cv2.cvtColor(smooth, cv2.COLOR_RGB2GRAY)
+    span = cv2.dilate(lum, disk(2.5)) - cv2.erode(lum, disk(2.5))
+    clear = (band != 0) & (cv2.dilate(mask, disk(4)) == 0) & ~green & (lum > 155) & (r-g < 15) & (g-b < 24)
+    rad = max(2, round(4*s))
+    side = 2*rad+1
+    square = np.ones((side, side), np.uint8)
+    safe_border = np.zeros_like(hole)
+    safe_border[rad:ch-rad, rad:cw-rad] = True
+    donors = np.argwhere((cv2.erode((clear & (span < 19)).astype(np.uint8), square) != 0) & safe_border)
+    if not len(donors):
+        donors = np.argwhere((cv2.erode(clear.astype(np.uint8), square) != 0) & safe_border)
+
+    rng = np.random.default_rng(54)
+    taper = np.hanning(side+2)[1:-1].astype(np.float32)
+    weights = taper[:, None]*taper[None, :]
+    tex = np.zeros_like(a)
+    power = np.zeros((ch, cw), np.float32)
+    stride = max(2, round(5*s))
+    if len(donors):
+        donor_tones = lum[donors[:, 0], donors[:, 1]]
+        for y in range(rad, ch-rad, stride):
+            for x in range(rad, cw-rad, stride):
+                ys, xs = slice(y-rad, y+rad+1), slice(x-rad, x+rad+1)
+                if not hole[ys, xs].any():
+                    continue
+                patch_hole = hole[ys, xs]
+                target_tone = surface[ys, xs][patch_hole].mean()
+                cost = np.abs(donor_tones-target_tone) + rng.uniform(0, 16, len(donors))
+                yy, xx = donors[np.argmin(cost)]
+                sample = grain[yy-rad:yy+rad+1, xx-rad:xx+rad+1].copy()
+                sample -= sample.mean(axis=(0, 1), keepdims=True)
+                tex[ys, xs] += sample*weights[..., None]
+                power[ys, xs] += weights**2
+        tex /= np.sqrt(np.maximum(power, .0001))[..., None]
+    else:
+        pool = grain[clear]
+        spread = np.clip(np.std(pool, axis=0), 1.2, 5.0) if len(pool) else np.full(3, 2.3)
+        common = rng.standard_normal((ch, cw, 1))
+        tex = (.85*common + .35*rng.standard_normal(a.shape))*spread
+
+    repaired = surface + 1.1*tex
+    d = cv2.distanceTransform(mask, cv2.DIST_L2, 5)
+    alpha = np.clip(d/max(1.6, 2.45*s), 0, 1)
+    alpha = alpha*alpha*(3-2*alpha)
+    alpha[core != 0] = 1
+    blended = np.clip(np.rint(a + alpha[..., None]*(repaired-a)), 0, 255).astype(np.uint8)
+    rgb[y0:y1, x0:x1][hole] = blended[hole]
+    return Image.fromarray(rgb)
+

质量筛选后的候选:delete the horse

magicbrush · GPT-6.1-Sol · TI · 自建图像judge通过 · 画质4/5 · 保留4/5

原图
单次 teacher 代码执行
数据集目标
完整 teacher 计划与代码
{
   "visual_evidence": [
-    "A yellow fire hydrant stands in the snow on the right side of the image.",
-    "The hydrant has a left-facing nozzle and a dark contact shadow beneath its base.",
-    "The snow immediately to its right provides nearby texture for the fill.",
-    "The skateboard is on the pavement in the foreground, well outside the edit area."
-  ],
-  "target_object": "The yellow fire hydrant and its dark contact shadow",
-  "target_region": "The upper-right snowbank, roughly 75–90% across the image and 29–56% down, just above the pavement.",
-  "editing_intent": "Remove the hydrant and its contact shadow, replacing them with textured snow that blends into the surrounding bank.",
-  "editing_plan": [
-    "Trace the hydrant, including its nozzle and base shadow, with a close-fitting mask.",
-    "Copy snow texture from the clean strip immediately to the right, sampling at similar heights.",
-    "Match the copied snow's broad shading to the snow around the mask while retaining fine texture and grain.",
-    "Feather the fill into the surrounding snow and leave all pixels outside the feather unchanged."
-  ],
-  "preservation_constraints": [
-    "Keep the skateboard and its shadow unchanged.",
-    "Preserve the pavement, sidewalk joints, and snow-pavement boundary.",
-    "Leave the tree trunk, background, and snow outside the localized edit unchanged."
+    "A dark horse stands left of center in the snowy field.",
+    "Its head and body rise above the upper fence rail, while its legs are visible through the rail gaps.",
+    "The muzzle overlaps a short section of the upper wooden rail.",
+    "Nearby unobstructed areas contain snow, dry vegetation, and weathered fence texture."
+  ],
+  "target_object": "The horse",
+  "target_region": "The horse silhouette behind the left-center fence, including its head, muzzle, body, and visible legs.",
+  "editing_intent": "Remove the horse and reconstruct snow and sparse vegetation behind it, preserving the foreground fence and repairing the rail obscured by its muzzle.",
+  "editing_plan": [
+    "Mask the horse body and visible legs with source-relative contours and a small edge margin.",
+    "Separate the foreground fence rails from the removal mask, except where the muzzle obscures the upper rail.",
+    "Sample unobstructed snow and vegetation to the right of the horse.",
+    "Warp the sampled texture separately within each fence gap so that donor rails do not appear in the reconstructed background.",
+    "Repair the obscured rail using texture sampled from the same rail.",
+    "Use inpainting along the narrow mask boundary and feather the synthesized texture into it.",
+    "Return the edited image while retaining all pixels outside the removal region."
+  ],
+  "preservation_constraints": [
+    "Keep the sky, distant hills, water, shoreline, and utility pole unchanged.",
+    "Preserve the visible fence rails and posts outside the muzzle overlap.",
+    "Keep the right-side shrubs and all unobstructed snow and vegetation unchanged.",
+    "Do not add animals, buildings, or additional fence components."
   ]
 }
 
 def edit(image):
-    import cv2
     import numpy as np
+    import cv2
     from PIL import Image
 
+    original = image.convert('RGB')
     w, h = image.size
-    scale = float(min(w, h))
-    original = np.array(image.convert('RGB'))
-    rgb = original.astype(np.float32)
+    src = np.asarray(original).copy()
+    scale = min(w, h)
 
-    # Trace the cap, barrel, nozzle, and dark footing in normalized coordinates.
-    outline = np.array([
-        (.843, .286), (.858, .287), (.860, .298), (.875, .300),
-        (.883, .312), (.889, .328), (.887, .399), (.884, .461),
-        (.882, .529), (.892, .536), (.897, .547), (.894, .555),
-        (.868, .558), (.827, .553), (.784, .547), (.779, .539),
-        (.797, .529), (.799, .476), (.801, .445), (.798, .415),
-        (.778, .415), (.774, .395), (.758, .391), (.755, .373),
-        (.769, .365), (.773, .348), (.797, .346), (.807, .342),
-        (.815, .318), (.826, .301), (.840, .296)
-    ], dtype=np.float32)
-    points = np.rint(outline * [w - 1, h - 1]).astype(np.int32)
-    mask = np.zeros((h, w), np.uint8)
-    cv2.fillPoly(mask, [points], 255)
-
-    bx, by, bw, bh = cv2.boundingRect(mask)
-    pad = max(8, int(np.ceil(.055 * scale)))
-    x0, x1 = max(0, bx - pad), min(w, bx + bw + pad)
-    y0, y1 = max(0, by - pad), min(h, by + bh + pad)
-    local = rgb[y0:y1, x0:x1]
-    outside = (mask[y0:y1, x0:x1] == 0).astype(np.uint8)
-    dist = cv2.distanceTransform(outside, cv2.DIST_L2, cv2.DIST_MASK_PRECISE)
-    guard = max(1., .0055 * scale)
-    feather = max(1., .008 * scale)
-    radius = guard + feather
-    blend = np.clip((radius - dist) / feather, 0., 1.)
-    blend = blend * blend * (3. - 2. * blend)
-    active = blend > 0.
-
-    # Sample an unoccluded strip to the right without copying the pavement.
-    yy, xx = np.mgrid[y0:y1, x0:x1].astype(np.float32)
-    nx = xx / max(w - 1, 1)
-    ny = yy / max(h - 1, 1)
-    sx = np.clip(.908 + .54 * (nx - .755) + .002 * np.sin(35. * (ny - .32)),
-                 .904, .989) * (w - 1)
-    sy = yy + h * (.001 - .003 * np.sin(26. * (ny - .286)))
-    donor = cv2.remap(rgb, sx.astype(np.float32), sy.astype(np.float32),
-                     cv2.INTER_CUBIC, borderMode=cv2.BORDER_REFLECT_101)
-
-    def gaussian(arr, sigma):
-        return cv2.GaussianBlur(arr, (0, 0), sigmaX=sigma, sigmaY=sigma,
-                                borderType=cv2.BORDER_REFLECT_101)
-
-    # Estimate the color correction from clean surroundings only. Smooth the
-    # correction, not the donor, so the snow's sampled detail stays intact.
-    clean = (dist > guard).astype(np.float32)
-    low_sigma = max(.8, .0075 * scale)
-    lo_weight = gaussian(clean, low_sigma)
-    scene_low = gaussian(local * clean[..., None], low_sigma)
-    scene_low /= np.maximum(lo_weight[..., None], 1.e-5)
-    donor_low = gaussian(donor, low_sigma)
-    boundary = (~active).astype(np.float32)
-    residual = (scene_low - donor_low) * boundary[..., None]
-    warm_sigma = max(2., .035 * scale)
-    correction = gaussian(residual, warm_sigma)
-    correction /= np.maximum(gaussian(boundary, warm_sigma)[..., None], 1.e-5)
-    correction[~active] = residual[~active]
-    stencil = np.array([[0., .25, 0.], [.25, 0., .25], [0., .25, 0.]], np.float32)
-    for _ in range(480):
-        average = cv2.filter2D(correction, -1, stencil, borderType=cv2.BORDER_REFLECT_101)
-        correction[active] = average[active]
-    filled = donor + correction
-
-    # Restore a small amount of fine luminance grain lost to resampling.
-    chip = rgb[int(.30 * h):max(int(.30 * h) + 1, int(.53 * h)),
-               int(.916 * w):max(int(.916 * w) + 1, int(.984 * w))]
-    if chip.shape[0] >= 3 and chip.shape[1] >= 3:
-        luminance = cv2.cvtColor(chip, cv2.COLOR_RGB2GRAY)
-        high = luminance - gaussian(luminance, max(.65, .0017 * scale))
-        mad = np.median(np.abs(high - np.median(high)))
-        noise_sd = float(np.clip(.45 * 1.4826 * mad, .18, 1.4))
-        grain = np.random.default_rng(37).normal(0., noise_sd, blend.shape).astype(np.float32)
-        filled += grain[..., None]
-
-    mixed = local + blend[..., None] * (filled - local)
-    result = original.copy()
-    result[y0:y1, x0:x1][active] = np.clip(np.rint(mixed[active]), 0, 255).astype(np.uint8)
-    return Image.fromarray(result)
-

扩大验证:64题 image-only 与 image+RGB 配对对照

MagicBrush 16 · UltraEdit 16 · SciForma 16 · MaskEdit中英文信息图各8。留出集共64个原图分组;每题两次独立 one-shot,总128次生成,结果不进入SFT。8并发,high reasoning,8192输出预算,两组均使用相同128×128源像素。

Setting完成代码执行图像judge通过 / 已评估API失败 / judge待评平均输入 / 输出tokens
只给image64/646346/640/0263 / 4,159
image + RGB64/646350/640/061,149 / 4,885

完成有效配对 64/64。只有RGB组成功:10题;只有image组成功:6题。净差 +6.2 个百分点,配对精确检验 p=0.454。配对bootstrap 95%区间 [-6.2, +18.8] 个百分点。

已完成全部64对。 API失败独立统计;代码能执行不等于编辑成功。成功率使用自建VLM judge,输入原图、编辑结果与指令,检查是否完整修改目标对象;不提供数据集目标图。两组teacher生成也均不看目标图。这轮分辨率是128,尚不代表原生高分辨率效果。

各数据集:只统计两组都完成的配对

数据集有效配对image成功image+RGB成功净差(百分点)
magicbrush16710+18.8
maskedit_cn877+0.0
maskedit_en886-25.0
sciforma161114+18.8
ultraedit161313+0.0

judge为GPT-5.5:要求指令≥4/5、保持≥4/5、质量≥3/5,且修改范围完整并≥4/5。输出token包含reasoning。代理未单独暴露图片token/图片费用,当前不推算金额,也不假设缓存折扣。

下载配对统计JSON

有输出自行放大的案例:保留模型原始输出和代码,judge将原图等比例放大后比较;辅助像素指标将结果缩回源尺寸。不将图片尺寸检查错误当成语义失败。

全部验证题:原图 / image结果 / image+RGB结果 / 数据集目标

按冻结任务顺序展示,失败同样保留。展开可看两组完整输出和judge理由;目标图仅供本地比较和展示。

magicbrush · magicbrush_dev_524924_2 · image:成功 / image+RGB:成功

change the pizza into a cake

原图
image · 成功
image+RGB · 成功
数据集目标图(teacher未见)
image 的judge理由与完整输出

The visible pizza has been fully replaced with a rectangular frosted cake-like object, covering the full target area. The surrounding person, table, fruit, and other objects are essentially preserved. The result is visually coherent, though the cake surface is somewhat simple and flat.

{
+    def polygon(points):
+        a = np.zeros((h, w), np.uint8)
+        p = np.array([(round(x * (w - 1)), round(y * (h - 1))) for x, y in points], np.int32)
+        cv2.fillPoly(a, [p], 255)
+        return a
+
+    body = polygon([
+        (0.148, 0.589), (0.154, 0.557), (0.156, 0.534),
+        (0.152, 0.509), (0.160, 0.485), (0.164, 0.470),
+        (0.160, 0.454), (0.164, 0.439), (0.172, 0.442),
+        (0.179, 0.457), (0.195, 0.448), (0.214, 0.433),
+        (0.234, 0.427), (0.252, 0.430), (0.272, 0.425),
+        (0.291, 0.426), (0.301, 0.433), (0.320, 0.425),
+        (0.349, 0.422), (0.374, 0.424), (0.396, 0.433),
+        (0.414, 0.450), (0.426, 0.475), (0.432, 0.503),
+        (0.433, 0.541), (0.431, 0.574), (0.423, 0.605),
+        (0.414, 0.630), (0.383, 0.641), (0.351, 0.635),
+        (0.320, 0.634), (0.290, 0.625), (0.268, 0.632),
+        (0.237, 0.638), (0.222, 0.619), (0.220, 0.588),
+        (0.201, 0.583), (0.192, 0.604), (0.176, 0.608),
+        (0.158, 0.603)
+    ])
+    legs = [
+        [(0.221, 0.600), (0.269, 0.604), (0.269, 0.655),
+         (0.263, 0.689), (0.274, 0.733), (0.280, 0.765),
+         (0.270, 0.778), (0.243, 0.777), (0.237, 0.745),
+         (0.234, 0.703), (0.229, 0.666)],
+        [(0.297, 0.620), (0.348, 0.614), (0.350, 0.660),
+         (0.344, 0.700), (0.349, 0.739), (0.348, 0.770),
+         (0.338, 0.782), (0.308, 0.779), (0.302, 0.740),
+         (0.304, 0.699)],
+        [(0.373, 0.591), (0.421, 0.589), (0.419, 0.641),
+         (0.411, 0.675), (0.411, 0.719), (0.409, 0.750),
+         (0.397, 0.771), (0.376, 0.767), (0.374, 0.737),
+         (0.371, 0.690)]
+    ]
+    silhouette = body.copy()
+    for points in legs:
+        silhouette = cv2.bitwise_or(silhouette, polygon(points))
+    margin = max(2, round(scale * 0.004))
+    kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (2 * margin + 1, 2 * margin + 1))
+    silhouette = cv2.dilate(silhouette, kernel)
+
+    # Rail boundaries are traced from the source fence and expressed relatively.
+    knots = np.array([0.0, 0.10, 0.20, 0.30, 0.40, 0.50, 0.64, 0.74, 1.0])
+    top_values = [
+        [0.577, 0.575, 0.571, 0.566, 0.561, 0.551, 0.542, 0.538, 0.539],
+        [0.660, 0.656, 0.647, 0.638, 0.634, 0.629, 0.624, 0.620, 0.618],
+        [0.754, 0.744, 0.734, 0.724, 0.714, 0.705, 0.695, 0.693, 0.694],
+        [0.858, 0.855, 0.845, 0.835, 0.824, 0.813, 0.794, 0.775, 0.787]
+    ]
+    bottom_values = [
+        [0.602, 0.605, 0.601, 0.596, 0.587, 0.577, 0.562, 0.566, 0.568],
+        [0.685, 0.685, 0.682, 0.677, 0.674, 0.668, 0.656, 0.647, 0.647],
+        [0.779, 0.777, 0.772, 0.763, 0.754, 0.746, 0.734, 0.726, 0.728],
+        [0.877, 0.875, 0.866, 0.857, 0.848, 0.836, 0.814, 0.803, 0.810]
+    ]
+    xx = np.arange(w, dtype=np.float32) / max(1, w - 1)
+    tops = np.array([np.interp(xx, knots, v) * (h - 1) for v in top_values], dtype=np.float32)
+    bottoms = np.array([np.interp(xx, knots, v) * (h - 1) for v in bottom_values], dtype=np.float32)
+    yy = np.arange(h, dtype=np.float32)[:, None]
+
+    rail_masks = [(yy >= tops[i][None, :]) & (yy <= bottoms[i][None, :]) for i in range(4)]
+    protected = np.logical_or.reduce(rail_masks)
+    muzzle_overlap = rail_masks[0] & (xx[None, :] >= 0.148) & (xx[None, :] <= 0.204)
+    edit_mask = silhouette.copy()
+    edit_mask[protected & ~muzzle_overlap] = 0
+    edit_mask[muzzle_overlap & (silhouette > 0)] = 255
+    if not np.any(edit_mask):
+        image = original
+        return image
+
+    # Reflect an unobstructed donor strip to avoid discontinuous tiling.
+    donor_x = 0.455 + np.abs(np.mod(xx - 0.150, 0.320) - 0.160)
+    donor_x = np.clip(donor_x, 0.455, 0.615)
+    source_tops = np.array([np.interp(donor_x, knots, v) * (h - 1) for v in top_values], dtype=np.float32)
+    source_bottoms = np.array([np.interp(donor_x, knots, v) * (h - 1) for v in bottom_values], dtype=np.float32)
+    map_x = np.broadcast_to((donor_x * (w - 1))[None, :], (h, w)).copy().astype(np.float32)
+    map_y = np.broadcast_to(yy, (h, w)).copy()
+
+    upper = yy < tops[0][None, :]
+    upper_map = yy + source_tops[0][None, :] - tops[0][None, :]
+    map_y[upper] = np.broadcast_to(upper_map, (h, w))[upper]
+    for i in range(4):
+        target_height = np.maximum(bottoms[i] - tops[i], 1)
+        fraction = (yy - tops[i][None, :]) / target_height[None, :]
+        mapped = source_tops[i][None, :] + fraction * (source_bottoms[i] - source_tops[i])[None, :]
+        map_y[rail_masks[i]] = mapped[rail_masks[i]]
+        if i < 3:
+            gap = (yy > bottoms[i][None, :]) & (yy < tops[i + 1][None, :])
+            fraction = (yy - bottoms[i][None, :]) / np.maximum(tops[i + 1] - bottoms[i], 1)[None, :]
+            mapped = source_bottoms[i][None, :] + fraction * (source_tops[i + 1] - source_bottoms[i])[None, :]
+            map_y[gap] = mapped[gap]
+    lower = yy > bottoms[-1][None, :]
+    mapped = yy + source_bottoms[-1][None, :] - bottoms[-1][None, :]
+    map_y[lower] = np.broadcast_to(mapped, (h, w))[lower]
+    map_y = np.clip(map_y, 0, h - 1).astype(np.float32)
+    texture = cv2.remap(src, map_x, map_y, cv2.INTER_LINEAR, borderMode=cv2.BORDER_REFLECT_101).astype(np.float32)
+
+    # Match the snow's local brightness without replacing its real grain.
+    ring_kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (2 * margin + 1, 2 * margin + 1))
+    ring = (cv2.dilate(silhouette, ring_kernel) > 0) & (silhouette == 0) & upper
+    clean = ring & (src.min(axis=2) > 215) & (texture.min(axis=2) > 215)
+    if np.count_nonzero(clean) > 20:
+        bias = np.median(src[clean].astype(np.float32) - texture[clean], axis=0)
+        bias = np.clip(bias, -8.0, 8.0)
+        snow = upper & (texture.min(axis=2) > 205)
+        texture[snow] += bias
+    texture = np.clip(texture, 0, 255)
+
+    # Inpainting supplies only the narrow transition; copied texture fills the interior.
+    edge_fill = cv2.inpaint(src, edit_mask, max(2, round(scale * 0.004)), cv2.INPAINT_TELEA).astype(np.float32)
+    distance = cv2.distanceTransform(edit_mask, cv2.DIST_L2, 5)
+    feather = np.clip(distance / max(2.0, scale * 0.004), 0, 1)
+    feather = feather * feather * (3 - 2 * feather)
+    candidate = texture * feather[:, :, None] + edge_fill * (1 - feather[:, :, None])
+    out = src.copy()
+    affected = edit_mask > 0
+    out[affected] = np.clip(candidate[affected], 0, 255).astype(np.uint8)
+    image = Image.fromarray(out, 'RGB')
+    return image

扩大验证:64题 image-only 与 image+RGB 配对对照

MagicBrush 16 · UltraEdit 16 · SciForma 16 · MaskEdit中英文信息图各8。留出集共64个原图分组;每题两次独立 one-shot,总128次生成,结果不进入SFT。8并发,high reasoning,8192输出预算,两组均使用相同128×128源像素。

Setting完成代码执行图像judge通过 / 已评估API失败 / judge待评平均输入 / 输出tokens
只给image64/646346/640/0263 / 4,159
image + RGB64/646350/640/061,149 / 4,885

完成有效配对 64/64。只有RGB组成功:10题;只有image组成功:6题。净差 +6.2 个百分点,配对精确检验 p=0.454。配对bootstrap 95%区间 [-6.2, +18.8] 个百分点。

已完成全部64对。 API失败独立统计;代码能执行不等于编辑成功。成功率使用自建VLM judge,输入原图、编辑结果与指令,检查是否完整修改目标对象;不提供数据集目标图。两组teacher生成也均不看目标图。这轮分辨率是128,尚不代表原生高分辨率效果。

各数据集:只统计两组都完成的配对

数据集有效配对image成功image+RGB成功净差(百分点)
magicbrush16710+18.8
maskedit_cn877+0.0
maskedit_en886-25.0
sciforma161114+18.8
ultraedit161313+0.0

judge为GPT-5.5:要求指令≥4/5、保持≥4/5、质量≥3/5,且修改范围完整并≥4/5。输出token包含reasoning。代理未单独暴露图片token/图片费用,当前不推算金额,也不假设缓存折扣。

下载配对统计JSON

有输出自行放大的案例:保留模型原始输出和代码,judge将原图等比例放大后比较;辅助像素指标将结果缩回源尺寸。不将图片尺寸检查错误当成语义失败。

全部验证题:原图 / image结果 / image+RGB结果 / 数据集目标

按冻结任务顺序展示,失败同样保留。展开可看两组完整输出和judge理由;目标图仅供本地比较和展示。

magicbrush · magicbrush_dev_524924_2 · image:成功 / image+RGB:成功

change the pizza into a cake

原图
image · 成功
image+RGB · 成功
数据集目标图(teacher未见)
image 的judge理由与完整输出

The visible pizza has been fully replaced with a rectangular frosted cake-like object, covering the full target area. The surrounding person, table, fruit, and other objects are essentially preserved. The result is visually coherent, though the cake surface is somewhat simple and flat.

{
   "visual_evidence": "A person is preparing food at a counter. The pizza occupies the lower-right foreground, with a browned perimeter and colorful toppings. The person's hands, utensils, fruit, clothing, and blue background are outside the intended edit.",
   "target_object": "The pizza in the lower-right foreground",
   "target_region": "Approximately x=0.43–0.96 and y=0.74–1.00, following the pizza's angled footprint",
@@ -2970,7 +3104,7 @@ y=7: ffffff*16 f9f9f9 c6c6c6 cbcbcb 949494 9a9a9a b9b9b9 c4c4c4 bababa bfbfbf e3
   "executable_code": "def edit(image):\n    import cv2\n    import numpy as np\n    from PIL import Image, ImageDraw, ImageFont\n    \n    # Convert to numpy for processing if needed, but we'll mostly use PIL Draw\n    img = image.copy()\n    draw = ImageDraw.Draw(img)\n    \n    w, h = img.size\n    \n    # Define colors\n    maroon = (128, 0, 32) # Approximate dark maroon\n    black = (0, 0, 0)\n    white = (255, 255, 255)\n    \n    # Approximate regions based on 128x128 layout\n    # Left group: 0-45, Centre group: 45-90, Right group: 90-128\n    \n    # --- EDIT 1: Application1 in SPIR-V Clients ---\n    # The prompt says 'add a white rectangle... labelled Application1'.\n    # Looking at the source, there is already a small box there. We will redraw it clearly.\n    # Position: bottom right area\n    app_x1, app_y1 = int(w * 0.85), int(h * 0.75)\n    app_x2, app_y2 = int(w * 0.98), int(h * 0.88)\n    \n    # Draw white rect with black border\n    draw.rectangle([app_x1, app_y1, app_x2, app_y2], fill=white, outline=black, width=1)\n    \n    # Label 'Application1'\n    # Font size needs to be tiny for 128px width\n    try:\n        font_small = ImageFont.truetype(\"arial.ttf\", 6)\n        font_tiny = ImageFont.truetype(\"arial.ttf\", 5)\n    except:\n        font_small = ImageFont.load_default()\n        font_tiny = ImageFont.load_default()\n    \n    # Center text in box\n    text = \"Application1\"\n    bbox = draw.textbbox((0,0), text, font=font_tiny)\n    tw, th = bbox[2]-bbox[0], bbox[3]-bbox[1]\n    tx = app_x1 + (app_x2-app_x1 - tw)//2\n    ty = app_y1 + (app_y1-app_y1 - th)//2\n    draw.text((tx, ty), text, fill=black, font=font_tiny)\n    \n    # Connector from centre-left edge to 'SPIR-V Generated Library' (centre group)\n    # Start: left edge of app box\n    start_x, start_y = app_x1, (app_y1 + app_y2) // 2\n    # End: right edge of centre group (approx x=90, y=80)\n    end_x, end_y = int(w * 0.70), int(h * 0.65) \n    draw.line([start_x, start_y, end_x, end_y], fill=black, width=1)\n    # Add arrowhead (simple triangle)\n    # Vector: end - start\n    dx = end_x - start_x\n    dy = end_y - start_y\n    length = (dx**2 + dy**2)**0.5\n    if length > 0:\n        ux, uy = dx/length, dy/length\n        # Arrow points\n        p1 = (end_x - 4*ux + 2*uy, end_y - 4*uy - 2*ux)\n        p2 = (end_x - 4*ux - 2*uy, end_y - 4*uy + 2*ux)\n        draw.polygon([(end_x, end_y), p1, p2], fill=black)\n\n    # --- EDIT 2: SPIR-V Library Helper in Centre Panel ---\n    # Position: top-middle of centre group\n    lib_x1, lib_y1 = int(w * 0.50), int(h * 0.25)\n    lib_x2, lib_y2 = int(w * 0.68), int(h * 0.40)\n    \n    # Draw maroon rect\n    draw.rectangle([lib_x1, lib_y1, lib_x2, lib_y2], fill=maroon, outline=black, width=1)\n    \n    # Label 'SPIR-V Library Helper' (two lines)\n    text1 = \"SPIR-V Library\"\n    text2 = \"Helper\"\n    # Center text\n    bbox1 = draw.textbbox((0,0), text1, font=font_tiny)\n    bbox2 = draw.textbbox((0,0), text2, font=font_tiny)\n    w1, h1 = bbox1[2]-bbox1[0], bbox1[3]-bbox1[1]\n    w2, h2 = bbox2[2]-bbox2[0], bbox2[3]-bbox2[1]\n    \n    cx = (lib_x1 + lib_x2) // 2\n    cy = (lib_y1 + lib_y2) // 2\n    \n    # Adjust for two lines\n    total_h = h1 + h2 + 2\n    start_y_text = cy - total_h // 2\n    \n    draw.text((cx - w1//2, start_y_text), text1, fill=white, font=font_tiny)\n    draw.text((cx - w2//2, start_y_text + h1 + 2), text2, fill=white, font=font_tiny)\n    \n    # Arrow from bottom centre to 'SPIR-V Generated Library' (existing box below)\n    # Start: bottom centre of new box\n    start_x, start_y = cx, lib_y2\n    # End: top of existing box (approx y=60, x=60)\n    end_x, end_y = int(w * 0.58), int(h * 0.55) \n    draw.line([start_x, start_y, end_x, end_y], fill=black, width=1)\n    # Arrowhead\n    dx = end_x - start_x\n    dy = end_y - start_y\n    length = (dx**2 + dy**2)**0.5\n    if length > 0:\n        ux, uy = dx/length, dy/length\n        p1 = (end_x - 4*ux + 2*uy, end_y - 4*uy - 2*ux)\n        p2 = (end_x - 4*ux - 2*uy, end_y - 4*uy + 2*ux)\n        draw.polygon([(end_x, end_y), p1, p2], fill=black)\n\n    # --- EDIT 3: SPIR-V Utility in SPIR-V Clients (Top) ---\n    # Dashed container at top right\n    cont_x1, cont_y1 = int(w * 0.78), int(h * 0.05)\n    cont_x2, cont_y2 = int(w * 0.98), int(h * 0.30)\n    \n    # Draw dashed rectangle manually\n    def draw_dashed_rect(draw, box, fill=None, outline=black, width=1, dash_length=3):\n        x1, y1, x2, y2 = box\n        # Top\n        x = x1\n        while x < x2:\n            draw.line([(x, y1), (min(x+dash_length, x2), y1)], fill=outline, width=width)\n            x += dash_length * 2\n        # Bottom\n        x = x1\n        while x < x2:\n            draw.line([(x, y2), (min(x+dash_length, x2), y2)], fill=outline, width=width)\n            x += dash_length * 2\n        # Left\n        y = y1\n        while y < y2:\n            draw.line([(x1, y), (x1, min(y+dash_length, y2))], fill=outline, width=width)\n            y += dash_length * 2\n        # Right\n        y = y1\n        while y < y2:\n            draw.line([(x2, y), (x2, min(y+dash_length, y2))], fill=outline, width=width)\n            y += dash_length * 2\n\n    draw_dashed_rect(draw, [cont_x1, cont_y1, cont_x2, cont_y2])\n    \n    # Inner maroon rectangle\n    util_x1, util_y1 = cont_x1 + 2, cont_y1 + 2\n    util_x2, util_y2 = cont_x2 - 2, cont_y2 - 2\n    draw.rectangle([util_x1, util_y1, util_x2, util_y2], fill=maroon, outline=black, width=1)\n    \n    # Label 'SPIR-V Utility (ASM/DISASM)'\n    text3 = \"SPIR-V Utility\"\n    text4 = \"(ASM/DISASM)\"\n    bbox3 = draw.textbbox((0,0), text3, font=font_tiny)\n    bbox4 = draw.textbbox((0,0), text4, font=font_tiny)\n    w3, h3 = bbox3[2]-bbox3[0], bbox3[3]-bbox3[1]\n    w4, h4 = bbox4[2]-bbox4[0], bbox4[3]-bbox4[1]\n    \n    cx = (util_x1 + util_x2) // 2\n    cy = (util_y1 + util_y2) // 2\n    total_h = h3 + h4 + 2\n    start_y_text = cy - total_h // 2\n    \n    draw.text((cx - w3//2, start_y_text), text3, fill=white, font=font_tiny)\n    draw.text((cx - w4//2, start_y_text + h3 + 2), text4, fill=white, font=font_tiny)\n    \n    # Connector from mid-left edge to container's left border\n    start_x, start_y = util_x1, (util_y1 + util_y2) // 2\n    end_x, end_y = cont_x1, (util_y1 + util_y2) // 2 - 5 # Slightly slanted\n    draw.line([start_x, start_y, end_x, end_y], fill=black, width=1)\n    # Arrowhead pointing left\n    dx = end_x - start_x\n    dy = end_y - start_y\n    length = (dx**2 + dy**2)**0.5\n    if length > 0:\n        ux, uy = dx/length, dy/length\n        p1 = (end_x - 4*ux + 2*uy, end_y - 4*uy - 2*ux)\n        p2 = (end_x - 4*ux - 2*uy, end_y - 4*uy + 2*ux)\n        draw.polygon([(end_x, end_y), p1, p2], fill=black)\n\n    return img",
   "requires_inpaint": false
 }
-```
VL + 图像:图像判分依据

The SPIR-V Library Helper box and downward arrow were added in roughly the correct place, and the top-right SPIR-V Utility container/box is partially present. However, the Utility label appears cramped/clipped, and the connector integration is rough. The requested Application1 white rectangle with black border is not properly created; it appears mostly as loose text with an arrow/connector rather than a clear bordered box. Unrelated diagram content is mostly preserved, but the added elements are visually messy and incomplete.

输入 710 tokens · 输出 3,032 tokens · 运行 256.6 秒 · 相对 no-op 的 L1 改善 -0.012127

数据构造:严格合格进度

严格合格监督(相同内容去重)

34,526 / 20,000

独立编辑任务

13,172 / 10,000

最近一小时首次严格通过:1,098 条;新版流水线完成候选 1,903。切换后的第一个小时属于不完整观测窗口,暂不据此自动推算完成日期。

所有来源统一要求:指令遵循、区域保留、画质、完整编辑范围均至少4/5,且完整目标判定为真;程序执行、复跑、依赖与英文检查通过。历史库存另列,新严格库存尚未完成全量人工审核。

存储状态:活跃数据已迁至新盘,CPU/API 数据构造已恢复;GPU 任务保持暂停。

迁移快照:SFT素材与构造文件约 69.6 GB;约59 GB的API传输归档已删除,后续不长期保存请求与回复副本。

来源严格 RFT严格 TI合计
anyedit716205921
magicbrush7684241,192
maskedit_en2,2014,1286,329
maskedit_scene1,6792,6464,325
sciforma14,0975,76119,858
ultraedit1,2546471,901

生产线心跳和实际产出

对标Qwen-Image-Edit:fine-grained数据

已从现有官方train索引 3071 个候选任务(尚未全数通过teacher)。重点:文字/数字、局部组件属性、材质、光照与几何辅助线。

2511公开卖点包含一致性、工业材质、光照和几何推理;2509还强调文字样式与多图编辑。当前主线仍是单图source-only程序,多图和新视角是待补齐能力。官方GPU基线尚未重新运行。

官方2511能力说明 · WeEdit文字编辑 · FineEdit区域编辑

单次回答的配对 prompt 测试

同一批24个训练任务,比较原版与执行约束版;相同RGB检查与图像judge。进度 384/384。排队/API错误单列,小样本结果用于选择下一轮实验。

生产线状态心跳近一小时首次严格通过错误重试预算耗尽
rft_and_rescuerunning2026-11-27T13:47:10.597551+08:002240
gpt62running2026-11-27T13:47:27.551133+08:001460
ti_balanced_en_v1running2026-11-27T13:38:15.381144+08:001663
ti_night_sol_v2waiting_for_off_peak2026-11-27T13:47:24.329511+08:0000
sol61_extra_v3waiting_for_new_tasks2026-11-27T13:47:16.764254+08:001430
teacher56_extra_v3waiting_for_new_tasks2026-11-27T13:47:20.160960+08:001890
sol62_extra_v3running2026-11-27T13:47:31.086711+08:00974
finegrained_extra_v1running2026-11-27T13:30:08.290880+08:001330
Teacher / prompt已完成严格合格通过率基础设施待处理
deepseek/baseline24520.8%0
deepseek/contract_v324520.8%0
gpt55/baseline24625.0%0
gpt55/contract_v324520.8%0
gpt56sol/baseline24729.2%0
gpt56sol/contract_v3241041.7%0
gpt61/baseline24937.5%0
gpt61/contract_v3241145.8%0
gpt62/baseline241145.8%0
gpt62/contract_v3241250.0%0
luna/baseline24833.3%0
luna/contract_v324625.0%0
seed21pro/baseline24312.5%0
seed21pro/contract_v32428.3%0
terra/baseline24729.2%0
terra/contract_v324937.5%0

新任务导入状态:reservoir_full;图片预算 未知 GiB,当前约 0.00 GiB。

路由优先局部像素操作和图形编辑;复杂物体合成占每条生产线滚动24小时尝试预算至多约15%。RFT至多2个teacher、独立TI至多2个Sol、语义失败补救至多1次;排队中的请求持续等待,API错误达到重试预算后保留待处理记录。原始数据与旧实验保留。

历史导出库存与已完成实验

模型输入原图和英文编辑指令,一次输出计划与 Python,程序从原图计算修改后的 RGB。下表保留旧导出口径;新的严格合格库存见上方进度。

20,859 行历史英文导出

RFT 14,417 + TI 6,442 · 独立任务 14,256。这里包含不同 teacher、增强版本及已停用来源的存档,不能作为新版严格训练集规模。新的训练快照对所有来源执行同一质量门槛。

来源RFTTI合计
anyedit1,1044081,512
instructpix2pix1,0143461,360
magicbrush5,2383,6158,853
maskedit_en6856201,305
maskedit_scene6906231,313
sciforma1,8911472,038
ultraedit3,7956834,478

最新 RL smoke:同一批 64 个 MagicBrush dev 任务

SFT 起点

3/64

代码执行 44/64

RL 后

11/64

代码执行 46/64

3 次真实参数更新,初始 SFT reference 权重不变。10 个任务由失败变成功,2 个由成功变失败。

这是自建图像 judge 的语义评估,不是官方像素指标。目前只有一个训练 seed,旧 greedy 推理存在数值重复性问题。正在用固定数值设置重复评测;不能直接归因为稳定 RL 收益。

正在推进:同 teacher、同任务的 RFT/TI 配比实验

每个配置覆盖相同的 256 个真实训练任务,TI 替换 RFT 答案。0%、25%、50% 是样本行数比例,三组总回答 token 预算均为 100 万;实际 TI token 比例另行统计。

ti00 · 157 步 · 1,001,372 / 1,000,000 回答 tokens · loss 0.46102285385131836

固定 dev64:图像 judge 11/64,代码执行 36/64。

实际TI回答token占比 0.0% · 平均每行出现 1.23 次

ti25 · 153 步 · 1,001,002 / 1,000,000 回答 tokens · loss 0.6757060885429382

固定 dev64:图像 judge 8/64,代码执行 34/64。

实际TI回答token占比 28.6% · 平均每行出现 1.20 次

ti50 · 150 步 · 1,003,372 / 1,000,000 回答 tokens · loss 0.7614325284957886

固定 dev64:图像 judge 7/64,代码执行 30/64。

实际TI回答token占比 53.7% · 平均每行出现 1.17 次

此实验限于 RFT 和 TI 都成功的任务,测试监督形式;TI 救回难任务的覆盖收益需要另一组对照。官方 benchmark、独立人工审核、跨数据集与多 seed 结果仍待补齐。

当前重复验证

固定数值设置和6k输出预算,重新测同一批dev64;第二个RL seed采用相同设置。推理完成后展示全量结果。

流程已评任务执行成功图像judge通过
SFT起点64/644311
已有RL模型64/644610
Qwen3.8零样本64/64474
训练 + 评测完成 +```
VL + 图像:图像判分依据

The SPIR-V Library Helper box and downward arrow were added in roughly the correct place, and the top-right SPIR-V Utility container/box is partially present. However, the Utility label appears cramped/clipped, and the connector integration is rough. The requested Application1 white rectangle with black border is not properly created; it appears mostly as loose text with an arrow/connector rather than a clear bordered box. Unrelated diagram content is mostly preserved, but the added elements are visually messy and incomplete.

输入 710 tokens · 输出 3,032 tokens · 运行 256.6 秒 · 相对 no-op 的 L1 改善 -0.012127

数据构造:严格合格进度

严格合格监督(相同内容去重)

34,538 / 20,000

独立编辑任务

13,178 / 10,000

最近一小时首次严格通过:1,108 条;新版流水线完成候选 1,922。切换后的第一个小时属于不完整观测窗口,暂不据此自动推算完成日期。

所有来源统一要求:指令遵循、区域保留、画质、完整编辑范围均至少4/5,且完整目标判定为真;程序执行、复跑、依赖与英文检查通过。历史库存另列,新严格库存尚未完成全量人工审核。

存储状态:活跃数据已迁至新盘,CPU/API 数据构造已恢复;GPU 任务保持暂停。

迁移快照:SFT素材与构造文件约 69.6 GB;约59 GB的API传输归档已删除,后续不长期保存请求与回复副本。

来源严格 RFT严格 TI合计
anyedit718205923
magicbrush7714261,197
maskedit_en2,2014,1296,330
maskedit_scene1,6792,6464,325
sciforma14,0975,76519,862
ultraedit1,2546471,901

生产线心跳和实际产出

对标Qwen-Image-Edit:fine-grained数据

已从现有官方train索引 3071 个候选任务(尚未全数通过teacher)。重点:文字/数字、局部组件属性、材质、光照与几何辅助线。

2511公开卖点包含一致性、工业材质、光照和几何推理;2509还强调文字样式与多图编辑。当前主线仍是单图source-only程序,多图和新视角是待补齐能力。官方GPU基线尚未重新运行。

官方2511能力说明 · WeEdit文字编辑 · FineEdit区域编辑

单次回答的配对 prompt 测试

同一批24个训练任务,比较原版与执行约束版;相同RGB检查与图像judge。进度 384/384。排队/API错误单列,小样本结果用于选择下一轮实验。

生产线状态心跳近一小时首次严格通过错误重试预算耗尽
rft_and_rescuerunning2026-11-27T13:49:57.011127+08:002270
gpt62running2026-11-27T13:50:36.111314+08:001480
ti_balanced_en_v1running2026-11-27T13:38:15.381144+08:001663
ti_night_sol_v2waiting_for_off_peak2026-11-27T13:50:18.860289+08:0000
sol61_extra_v3waiting_for_new_tasks2026-11-27T13:50:29.935164+08:001430
teacher56_extra_v3waiting_for_new_tasks2026-11-27T13:50:37.847579+08:001890
sol62_extra_v3running2026-11-27T13:50:50.548923+08:001024
finegrained_extra_v1running2026-11-27T13:30:08.290880+08:001330
Teacher / prompt已完成严格合格通过率基础设施待处理
deepseek/baseline24520.8%0
deepseek/contract_v324520.8%0
gpt55/baseline24625.0%0
gpt55/contract_v324520.8%0
gpt56sol/baseline24729.2%0
gpt56sol/contract_v3241041.7%0
gpt61/baseline24937.5%0
gpt61/contract_v3241145.8%0
gpt62/baseline241145.8%0
gpt62/contract_v3241250.0%0
luna/baseline24833.3%0
luna/contract_v324625.0%0
seed21pro/baseline24312.5%0
seed21pro/contract_v32428.3%0
terra/baseline24729.2%0
terra/contract_v324937.5%0

新任务导入状态:reservoir_full;图片预算 未知 GiB,当前约 0.00 GiB。

路由优先局部像素操作和图形编辑;复杂物体合成占每条生产线滚动24小时尝试预算至多约15%。RFT至多2个teacher、独立TI至多2个Sol、语义失败补救至多1次;排队中的请求持续等待,API错误达到重试预算后保留待处理记录。原始数据与旧实验保留。

历史导出库存与已完成实验

模型输入原图和英文编辑指令,一次输出计划与 Python,程序从原图计算修改后的 RGB。下表保留旧导出口径;新的严格合格库存见上方进度。

20,859 行历史英文导出

RFT 14,417 + TI 6,442 · 独立任务 14,256。这里包含不同 teacher、增强版本及已停用来源的存档,不能作为新版严格训练集规模。新的训练快照对所有来源执行同一质量门槛。

来源RFTTI合计
anyedit1,1044081,512
instructpix2pix1,0143461,360
magicbrush5,2383,6158,853
maskedit_en6856201,305
maskedit_scene6906231,313
sciforma1,8911472,038
ultraedit3,7956834,478

最新 RL smoke:同一批 64 个 MagicBrush dev 任务

SFT 起点

3/64

代码执行 44/64

RL 后

11/64

代码执行 46/64

3 次真实参数更新,初始 SFT reference 权重不变。10 个任务由失败变成功,2 个由成功变失败。

这是自建图像 judge 的语义评估,不是官方像素指标。目前只有一个训练 seed,旧 greedy 推理存在数值重复性问题。正在用固定数值设置重复评测;不能直接归因为稳定 RL 收益。

正在推进:同 teacher、同任务的 RFT/TI 配比实验

每个配置覆盖相同的 256 个真实训练任务,TI 替换 RFT 答案。0%、25%、50% 是样本行数比例,三组总回答 token 预算均为 100 万;实际 TI token 比例另行统计。

ti00 · 157 步 · 1,001,372 / 1,000,000 回答 tokens · loss 0.46102285385131836

固定 dev64:图像 judge 11/64,代码执行 36/64。

实际TI回答token占比 0.0% · 平均每行出现 1.23 次

ti25 · 153 步 · 1,001,002 / 1,000,000 回答 tokens · loss 0.6757060885429382

固定 dev64:图像 judge 8/64,代码执行 34/64。

实际TI回答token占比 28.6% · 平均每行出现 1.20 次

ti50 · 150 步 · 1,003,372 / 1,000,000 回答 tokens · loss 0.7614325284957886

固定 dev64:图像 judge 7/64,代码执行 30/64。

实际TI回答token占比 53.7% · 平均每行出现 1.17 次

此实验限于 RFT 和 TI 都成功的任务,测试监督形式;TI 救回难任务的覆盖收益需要另一组对照。官方 benchmark、独立人工审核、跨数据集与多 seed 结果仍待补齐。

当前重复验证

固定数值设置和6k输出预算,重新测同一批dev64;第二个RL seed采用相同设置。推理完成后展示全量结果。

流程已评任务执行成功图像judge通过
SFT起点64/644311
已有RL模型64/644610
Qwen3.8零样本64/64474
训练 + 评测完成

纯 RFT

21.9%

图像编辑成功:14/64 张

训练 8,002,255 / 8,000,000 回答 tokens · 1,289 步
8,601 条训练轨迹 · 代码执行 47/64

训练 + 评测完成 @@ -3289,4 +3423,4 @@ def edit(image): result[mask==0] = src[mask==0] image = Image.fromarray(np.clip(np.rint(result),0,255).astype(np.uint8),'RGB') return image

下一步

重复训练确认这轮混合数据的收益;扩大合格数据与失败任务补救;用修正后的 SFT 模型开展更长的 RL,并在独立留出集上做更新前后对照。

已修复训练 / 推理模板及多模态 token 回放,按原图与重复 RGB 内容分组。10 步 SFT 工程测试通过权重更新检查,2 条留出样本的执行仍失败;不将工程测试当成模型质量结果。

- \ No newline at end of file + \ No newline at end of file