Manuscript Offprint

arXiv:2610.09125

Depth-to-RGB: Repurposing a Frozen Depth Estimator for Geometry-Guided Compositing

Sanghyun Jo, Chae Yeon Lim, Donghwan Lee, Sihyun Kim, Soo Ye Kim, Kyungsu Kim

Sanghyun Jo1,2,†^{1,2,\dagger}, Chae Yeon Lim1,2^{1,2}, Donghwan Lee2^{2}, Sihyun Kim2^{2}, Soo Ye Kim3^{3}, Kyungsu Kim2,†^{2,\dagger}

1^{1}OGQ 2^{2}Seoul National University 3^{3}Adobe Research

†^{\dagger}Corresponding authors: shjo.april@gmail.com, kyskim@snu.ac.kr

Reference-based object compositing inserts or replaces an object using a background image, a reference image, and a 2D compositing mask. These inputs guide appearance and placement but leave the completed scene’s geometry implicit, which can distort object structure or alter the surroundings. Our Depth-to-RGB (D2R) framework predicts composite depth for a scene not yet observed in the RGB inputs. It learns reference-conditioned corrections to a frozen depth estimator using encoder features of paired completed scenes as targets. The unchanged decoder maps the corrected representation to the intended scene’s depth, which a separately trained renderer holds fixed during RGB synthesis. Under matched architecture and training, encoder-feature supervision reduces OOD Stage-1 AbsRel by 31.4% relative to decoded-depth supervision. We also introduce AnyInsertion++ with paired in-distribution and category-disjoint splits to evaluate generalization beyond compositing training categories. The complete D2R system leads 12 open-source and 3 closed-source baselines in estimator-derived geometry and photometric quality on both paired splits. On category-disjoint data, D2R reduces AbsRel by 43.7% and improves PSNR by 2.4 dB over the matched RGB baseline. Across three unpaired benchmarks, D2R leads both identity metrics and reduces mean CLIP reference cosine distance by 55% relative to the strongest baseline. Code and AnyInsertion++ are publicly available at the links below.

Project Page: https://shjo-april.github.io/Depth2RGB/

Github: https://github.com/shjo-april/Depth2RGB

Lab: https://aibl.snu.ac.kr

Figure

AIBL

1 Introduction

Object compositing must preserve a reference object's identity while adapting its shape and placement to a new scene. The background provides scene context, and a 2D mask indicates the target region without specifying the intended composite depth. Figure 1 illustrates the challenge: transferring reference appearance can produce distorted object structure, incorrect placement, or changes to the surrounding scene. These errors motivate a geometric condition for the completed scene, guiding appearance generation with an explicit description of the object and its surroundings.

Most reference-guided object compositing methods infer geometry implicitly during RGB denoising. Some approaches with explicit geometric conditions use depth estimated from an input image [5, 42], assembled foreground and background depth maps [27], or an RGB proxy rendered from a user-posed 3D object [14]. Depth estimated from an input image describes its observed geometry, which does not determine the reference object's depth and shape in the completed composite. Assembling maps relies on rules for placing and rescaling reference depth within the background, while rendering a proxy requires the object's target pose to be specified before RGB generation. Our goal is to predict post-composite depth from the background image, reference image, and 2D compositing mask, jointly estimating the geometry of the reference object and its surroundings.

We call this field composite depth: the depth of the entire scene after compositing. Background depth omits the intended object, while reference depth describes it in another scene and viewpoint. Neither map directly describes the object's shape and placement within the target scene. Predicting this field requires combining reference appearance with scene context. We formulate this task as endogenous geometry provisioning: inferring this geometric condition from the given inputs.

Figure

Figure 1. Predicting Composite Depth Before RGB Synthesis. Depth-to-RGB (D2R; Ours) predicts composite depth (seventh column) and holds it fixed while generating RGB (eighth). D2R preserves reference appearance while matching the target shape and pose; the open- and closed-source baselines instead miss the target geometry, alter object identity, or modify surrounding content.

A pretrained depth estimator maps an observed image’s features to depth. Depth-to-RGB (D2R) freezes its encoder and decoder while learning reference-conditioned residual corrections to the background representation. Training aligns the resulting representation with encoder features extracted from paired completed scenes, enabling the unchanged decoder to predict composite depth. This geometric condition remains fixed throughout RGB synthesis.

To evaluate geometry and category generalization, we curate AnyInsertion++ from AnyInsertion [48], expanding paired evaluation from 38 to 426 cases with a category-disjoint split. Paired evaluation compares estimated depth and RGB composites with paired targets. Additionally, we assess reference identity on TF-ICON [35], AIComposer [26], and ComplexCompo [36], which collectively cover photographic, cartoon, and artistic backgrounds (Tab. 4). These unpaired benchmarks test whether reference appearance is retained across different visual styles beyond the paired evaluation setting. Our contributions are:

• Problem. We address the missing geometric condition in reference-based object compositing: predicting the completed scene’s relative depth from a background image, reference image, and 2D compositing mask.

• Solution. We propose Depth-to-RGB (D2R). First, we learn reference-conditioned corrections to a frozen depth estimator using encoder features of paired completed scenes as targets. Under matched architecture and training, encoder-feature supervision reduces OOD Stage-1 AbsRel by 31.4% relative to decoded-depth supervision. Second, we train an RGB renderer to use the resulting depth as a fixed geometric condition.

• Results. The complete D2R system reduces category-disjoint AbsRel by 43.7% and improves PSNR by 2.4 dB over the matched RGB baseline. Across three unpaired benchmarks, D2R leads the 15 evaluated baselines on both identity metrics, reducing mean CLIP reference cosine distance by 55% relative to the strongest baseline.

References (77)

  • Flamingo: a visual language model for few-shot learning
  • Self-supervised learning from images with a joint-embedding predictive architecture
  • Depth Pro: Sharp monocular metric depth in less than a second
  • CareCom: Generative image composition with calibrated reference features
  • Zero-shot image editing with reference imitation
  • AnyDoor: Zero-shot object-level image customization
  • Vision transformer adapter for dense predictions
  • SIGNeRF: Scene integrated generation for neural radiance fields
  • Modality forcing for scalable spatial generation (opens arXiv in a new tab)
  • Scaling rectified flow transformers for high-resolution image synthesis
  • Personalize anything for free with diffusion transformer
  • PAIR Diffusion: A comprehensive multimodal object-level image editor
  • FreeInpaint: Tuning-free prompt alignment and visual rationality enhancement in image inpainting
  • Direct 3D-aware object insertion via decomposed visual proxies
  • Lotus: Diffusion-based visual foundation model for high-quality dense prediction
  • GeoEdit: Geometry-aware object editing via dual-branch denoising
  • LoRA: Low-rank adaptation of large language models
  • DreamFuse: Adaptive image fusion with diffusion transformer
  • Refacade: Editing object with given reference texture
  • TRACE: Your diffusion model is secretly an instance edge detector
  • BrushNet: A plug-and-play image inpainting model with decomposed dual-branch diffusion
  • Repurposing diffusion-based image generators for monocular depth estimation
  • JointDiT: Enhancing RGB-Depth joint modeling with diffusion transformers
  • Compose and conquer: Diffusion-based 3D depth aware composable image synthesis
  • InsertFuse: A unified framework for multi-category reference-guided image insertion (opens arXiv in a new tab)
  • AIComposer: Any style and content image composition via feature integration
  • Bifröst: 3D-aware image compositing with language instructions
  • Control-Net++: Improving conditional controls with efficient consistency feedback
  • GLIGEN: Open-set grounded text-to-image generation
  • Depth Anything 3: Recovering the visual space from any views
  • Flow matching for generative modeling
  • Flow straight and fast: Learning to generate and transfer data with rectified flow
  • HiFi-Inpaint: Towards high-fidelity reference-based inpainting for generating detail-preserving human-product images
  • Decoupled weight decay regularization
  • TF-ICON: Diffusion-based training-free cross-domain image composition
  • Does FLUX already know how to perform physically plausible image composition? In International Conference on Learning Representations (ICLR), 2026
  • IsoCLIP: Decomposing CLIP projectors for efficient intra-modal alignment
  • Person-In-Situ: Scene-consistent human image insertion with occlusion-aware pose control (opens the publisher in a new tab)
  • Prodigy: An expeditiously adaptive parameter-free learner
  • T2I-Adapter: Learning adapters to dig out more controllable ability for text-to-image diffusion models
  • Diffusion Handles enabling 3D edits for diffusion models by lifting activations to 3D
  • Zero-shot depth aware image editing with diffusion models
  • SDXL: Improving latent diffusion models for high-resolution image synthesis
  • Non-linearity, sparsity, and attention-sink-free
  • Vision transformers for dense prediction
  • High-resolution image synthesis with latent diffusion models
  • Insert anything: Image insertion via in-context editing in DiT
  • ObjectStitch: Object compositing with diffusion model
  • IMPRINT: Generative object compositing by learning identity-preserving representation
  • VGGT-World: Transforming VGGT into an autoregressive geometry world model
  • OminiControl: Minimal and universal control for diffusion transformer
  • Add-it: Training-free object insertion in images with pretrained diffusion models
  • SigLIP 2: Multilingual vision-language encoders with improved semantic understanding, localization, and dense features (opens arXiv in a new tab)
  • Plug-and-play diffusion features for text-driven image-to-image translation
  • UniCombine: Unified multi-conditional combination with diffusion transformer
  • SpatialHand: Generative object manipulation from 3D perspective
  • ObjectDrop: Bootstrapping counterfactuals for photorealistic object removal and insertion
  • ObjectMate: A recurrence prior for object insertion and subject-driven generation
  • Qwen-Image Technical Report
  • ViT-CoMer: Vision transformer with convolutional multi-scale feature interaction for dense predictions
  • Paint by Example: Exemplar-based image editing with diffusion models
  • MetricAnything: Scaling metric depth pretraining with noisy heterogeneous sources
  • Depth Anything: Unleashing the power of large-scale unlabeled data
  • Depth Anything V2
  • IP-Adapter: Text compatible image prompt adapter for text-to-image diffusion models (opens arXiv in a new tab)
  • InfiniDepth: Arbitrary-resolution and fine-grained depth estimation with neural implicit fields
  • Representation alignment for generation: Training diffusion transformers is easier than you think
  • mixup: Beyond empirical risk minimization
  • Adding conditional control to text-to-image diffusion models
  • The unreasonable effectiveness of deep features as a perceptual metric
  • Geometric image editing via effects-sensitive in-context inpainting with diffusion transformers
  • FreeInsert: Personalized object insertion with geometric and style control (opens the publisher in a new tab)
  • From open loop to closed loop: A test-time iterative optimization framework for reference-consistent image generation
  • Uni-ControlNet: All-in-one control to text-to-image diffusion models
  • A $^{2}$-Edit: Precise reference-guided image editing of arbitrary objects and ambiguous masks
  • 3DIS: Depth-driven decoupled image synthesis for universal multi-instance generation
  • Training-free geometric image editing on diffusion models (opens the publisher in a new tab)