Code as Pixels: Coding agents edit pixels directly, beating Nano-Banana training-free
yuewang314 · x · 2026-12-03
Researchers from USC, Brown, Rice, Cornell and Toyota Research Institute introduce Code as Pixels: instead of prompting diffusion models with text, a coding agent writes Python programs to edit images directly in pixel space.
- A frozen flow model handles denoising/realism while the agent controls content and spatial layout
- For T2I, the agent inspects a one-step clean latent estimate mid-denoising (step 34), edits pixels, re-encodes the masked region back to step 30, and lets the frozen model resume
- For image editing, no fine-tuned editor is needed: the agent edits source pixels, then the flow model denoises to harmonize
- A single sampler interpolates between SDEdit-style redraw and FlowEdit-style preservation via a λ the agent picks per edit
Results: the training-free method beats Nano-Banana on image editing and posts large gains on T2I DPG-Bench and OneIG (authors claim it tops GPT-Image-2). Demos include removing an extra sheep during denoising and turning a bear lamp into glass.
More from Multimodal
- Minimax H3 trick: same image as first and last frame yields infinite looping CCTV clip — Kyrannio · 2026-12-06
- Rebuilding Mostar's UNESCO Old Bridge in 3D with Blender + Codex — CurieuxExplorer · 2026-12-06
- PhyProbe: a 1M-parameter scoring head beats VLMs at judging video physics — CSProfKGD · 2026-12-06
- Full AI-generated music video "Ocean of Love" released on Reddit — Pizacee · 2026-12-06
- AI video platform Higgsfield announces it has open-sourced — videorouter · 2026-12-06
- Dev uses AI to fix desert biomes, stunning before/after comparison — jasonkneen · 2026-12-06