← Back to project

SAM 3D-style (image, box) → 3D data with Qwen-Image-Edit: pipeline + failure log

RP-3DO-like render-paste data from our own assets · pilot of 160 candidates · 2026-09-23
datasam3dqwen-image-editfailure-cases

TL;DR

Goal: SAM 3D-style training pairs: a photoreal scene image and the box of one of OUR assets in it. The 3D target is that asset's existing ss/shape/pbr latents, so there is nothing new to encode.
Current pipeline: paste on grey → per-object scene prompt from Qwen2.5-VL → QIE-2511 + Lightning 8 steps → position QC. About 15 s per candidate including reseeds, ~50–55% pass. Pilot: 90 strict-pass samples across 19 categories and 16 views.
Not scaled yet: (1) QIE sometimes paints a second copy of the object, which passes every position check (~10/90). (2) The object's size in the frame often disagrees with the scene's scale (giant shoe in an office). (3) Untextured assets get an invented texture.

1 · Best results (curated by eye from the 90)

Best results (1/2): the object is relit into the scene, not pasted; the box is exact by construction.
Best results (2/2): household, tools, weapons and plants in daylight and indoor light.

2 · What one sample is

One v7 sample: render view → pasted input → QIE output with box → mask. The pose matches the render because the box and mask come from the paste.

3 · Current pipeline

Pipeline. Grey = what gets stored; the geometry GT is reused, not generated.

4 · Attempts, in order

veridearesultwhy dropped / kept
v1alpha-paste render on a background (literal RP-3DO)100/100clean but visibly fake: no contact, lighting mismatch
v2QIE full edit 'build a scene around it'81/100 shape QCobject moves or reshapes when placed off-centre
v3diffusers QwenImageEditInpaintPipeline (mask)0 usable, 5 configsgeneric latent blending; model never trained with masks → checkerboard / grey bg
2.1Qwen-Image-2.1 'change the background'2/8 stayednicest light, but re-frames and rescales the object; research-only license
v4QIE-2511 + 20 fixed scene prompts, restore object pixels100/123objects stay, but scenes repeat and restored pixels look pasted
v5VLM prompts: Lightning-8 vs full 40 steps12/16 vs 5/16the full model reframes far more; Lightning kept
v6VLM prompts + camera/lens styles, no restore69/140'telephoto / wide-angle / real-estate' mean REFRAME
v7keep-first prompt, non-reframing styles, edge-check reseed24/70 redo, 11/20 freshcurrent; strict QC total 90/160
Yield per attempt. Only QIE-2511 keeps the object in place reliably; richer prompts cost yield.

5 · Failure log

F1 · Alpha paste (v1): correct box, fake photo

v1: pasted renders. Geometrically perfect, photometrically fake.

F2 · Full scene edit around the object (v2): object drifts

Red = placed box. FAIL cases: robot re-posed, chair redrawn, character moved out of the box entirely.

F3 · 'Official' inpaint pipeline (v3): not a trained inpainter

v3 probe: every configuration produces checkerboard or empty grey background. A structural failure, not a tuning one.

F4 · Qwen-Image-2.1: beautiful, but moves the object

Same input and prompt. Middle = 2.1 (moves / rescales), right = QIE-2511 (stays in the red box).

F5 · Measurement pitfalls (each flipped a conclusion once)

Shape-only check (position and scale removed): 2.1 mostly keeps SHAPE (yellow = overlap) even when it moves the object.

F6 · Restoring the object pixels (v4): pasted look

v4 (restored, 20 fixed scenes): objects stay put, but the lighting mismatch and repeated scenes are obvious at a glance.

F7 · Full 40-step QIE reframes more (v5)

Left: old fixed prompt; middle: VLM prompt, 8 steps; right: VLM prompt, 40 steps (moves more).

F8 · Photo-style words that mean 'recompose' (v6)

v6 pass rate by prompt factor. The camera-style phrase alone explains a 4× spread.

F9 · Duplicated objects fool every position check (open)

Edge-check 'rescues' (input | output): whale, skull, tank, doll and statue gained a twin; the rifle left its box.
Real duplicates among the VLM flags (8 of 30): bouquet, fish, brain, knife, tractor, dish, rock, aloe.
VLM false alarms: stools in a café, truffles on a plate, a symmetric bridge, a ship next to a tank. Counting is not a usable filter.

F10 · Object scale vs scene scale (open)

Scale mismatch: correct box, implausible world.

F11 · Re-texturing of untextured / dark assets (open)

Asset render vs QIE output: geometry kept, texture invented.

6 · Next

Appendix · All 90 strict-pass samples (uncurated)

Uncurated strict-pass samples 1-16 (red = box; dup? = flagged by the VLM counter, unverified).
Uncurated strict-pass samples 17-32 (red = box; dup? = flagged by the VLM counter, unverified).
Uncurated strict-pass samples 33-48 (red = box; dup? = flagged by the VLM counter, unverified).
Uncurated strict-pass samples 49-64 (red = box; dup? = flagged by the VLM counter, unverified).
Uncurated strict-pass samples 65-80 (red = box; dup? = flagged by the VLM counter, unverified).
Uncurated strict-pass samples 81-90 (red = box; dup? = flagged by the VLM counter, unverified).
Pilot numbers; single seed per candidate. QIE-2511: Apache-2.0. Qwen-Image-2.1 results are shown for comparison only.