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.

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.

Original post →

More from Multimodal

Multimodal channel →