Manuscript Offprint
arXiv:2609.03740Fill My Mirror: Geometry-Constrained Mirror Inpainting
Ofek Basson Shimon Vainer Yacov Hel-Or Ohad Fried Reichman University

Figure 1. Mirror inpainting comparison. Generative baselines (FLUX.1 Fill, Qwen-Image-Edit) fill reflections that are geometrically inconsistent with the surrounding scene. MirrorFusion 2.0 did not perform inpainting on this example, leaving the mirror region unchanged. Our geometry-constrained generative approach (right image) aligns reflected structures with the visible scene while preserving realism. The mirror region is outlined in green.
Abstract
Mirrors are common in real-world images, yet producing geometrically consistent reflections with generative models remains challenging. Unlike most objects, mirror appearance depends on scene geometry and viewpoint, making it hard to synthesize using learned appearance priors alone. We address this in the mirror inpainting setting, where the scene is fixed and only the mirror region is generated.
Our key insight is that much mirror content is geometrically constrained by the visible scene and need not be hallucinated. We estimate scene geometry and project visible content into the mirror to recover reflection regions determined by geometry. A generative model then completes the mirror region via a two-mask diffusion strategy balancing geometric constraints with the model's learned priors, reducing projection artifacts and improving reflection consistency. The method is training-free and applicable to complex real-world scenes.
We evaluate on MirrorBench-V2 (synthetic) and real images. Using standard and geometry-aware metrics, we show that explicitly using scene geometry improves consistency.
1. Introduction
Mirrors frequently appear in images generated by modern models, yet generating physically consistent reflections remains an unsolved challenge. Filling a mirror region in an image requires understanding the scene geometry and reasoning about parts of the scene that are not directly visible. We therefore focus on the task of mirror inpainting: given an image and a mirror mask, our goal is to generate reflection content that is geometrically consistent with the visible scene. Notably, this task differs from generating an image containing a mirror from scratch: when generating freely, a model can implicitly satisfy its learned priors by constructing a scene with simple or undemanding reflection geometry, whereas our inpainting setting fixes the scene and requires the reflection to be derived from actual geometry — leaving no freedom to choose an easy arrangement.
As illustrated in figure 1, existing inpainting methods typically generate visually pleasing mirror content, but they fail to produce geometrically consistent reflections. One reason for this failure is that existing inpainting methods primarily rely on the learned priors of the model to hallucinate missing content in mirror regions. The fact that mirror appearance is not intrinsic to the surface, but is fully determined by the scene and viewing geometry, makes mirror behavior difficult to learn from image statistics alone: even
This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

Figure 2. Effect of small viewpoint changes on mirror appearance. Columns show viewpoint changes for a non-reflective brick wall (top row) and a mirror (bottom row). A 5° change in orientation, which is nearly imperceptible to observers, causes a significant change in the mirror appearance, while the non-reflective textured surface changes only slightly. This highlights the strong geometric dependence of mirror appearance and emphasizes its fundamental difference from non-reflective objects.
small viewpoint changes can substantially alter the reflected content (figure 2).
Recent works such as Reflecting Reality [5] and MirrorVerse [4] address this challenge by conditioning generation on depth information. While these approaches include some real images, they are predominantly trained on synthetic data, which affects their generalization to real-world scenes and diverse geometries. Moreover, depth is used only as an auxiliary input signal to guide hallucination, rather than as an explicit geometric anchor: to our knowledge, no prior mirror-generation method projects scene geometry into the mirror and uses that projection to directly constrain, rather than merely condition, the generated content.
Our key insight is that mirror reflections are largely determined by scene geometry and therefore do not need to be fully hallucinated. A significant portion of the mirror content can be recovered deterministically by projecting visible scene geometry into the mirror using estimated geometry. However, projection errors introduce artifacts that propagate into the final result, making purely projection-based completion insufficient. To address this, we adopt a two-mask diffusion formulation in which one mask governs inpainting of regions not constrained by geometry, while a second mask preserves and refines the projected reflection using the model's learned priors. This lets a single pre-trained diffusion model preserve, refine, or synthesize each region according to its geometric evidence, rather than hallucinating the whole mirror. The resulting method is training-free and improves with geometry quality.
We evaluate our method on MirrorBench-V2 [4], a public benchmark providing ground-truth geometry, both with and without access to ground-truth geometry during inference, as well as on real images without ground-truth geom-
etry. We compare our approach against strong baseline approaches using standard image-level metrics together with a newly introduced geometry-based reflection consistency evaluation. Our results show that explicitly incorporating scene geometry leads to better mirror reflections.
Our main contributions are:
Geometry-constrained mirror inpainting. We introduce a training-free mirror inpainting method that explicitly decomposes the problem into (1) deterministic geometric scene projection and (2) generative completion of the remaining regions. To our knowledge, this is the first mirror-generation method to condition on explicit projected geometry rather than using depth only as an auxiliary signal. This formulation enforces physical reflection constraints while minimizing reliance on hallucination.
Robust diffusion via two-mask decomposition. We propose a diffusion-time noise interpolation strategy that leverages two complementary masks to balance geometric constraints with the model's learned priors, mitigating artifacts caused by depth errors, occlusion ambiguities, and imperfect projections without retraining or modifying the underlying diffusion model.
Geometry-aware evaluation without ground-truth geometry. We introduce a metric for evaluating the quality of mirror reflection in real images without ground-truth geometry, focusing mainly on mirror regions that are determined by the visible scene.
2.1. Mirrors as a Special Case in Visual Modeling
Mirrors violate the common assumption that an observed image corresponds directly to visible scene geometry, as they encode a virtual viewpoint rather than directly observed structure. As a result, mirror regions often introduce inconsistencies in reconstruction and rendering systems. This virtual-camera model of reflection has a long history in classical catadioptric stereo and self-calibration [7, 14, 15, 26], and underlies the neural approaches discussed below and our own projection stage.
Mirrors remain a persistent failure case in image and video synthesis [2], observed across multiple lines of work. In neural rendering and 3D reconstruction, mirrors often lead to duplicated geometry or inconsistent multi-view predictions. To address this, several methods [12, 16, 19, 21] explicitly model mirror geometry or introduce virtual reflected cameras, treating reflections as secondary viewpoints governed by mirror symmetry. Other works separate reflected and transmitted scene components via decomposition or reflection-supervised losses [3, 13, 28].
While most of these approaches operate in multi-view reconstruction or neural rendering settings, they highlight a broader principle: mirror reflections require explicit geometric reasoning. Our work builds on this insight in the setting of single-image inpainting, where we enforce reflection geometry directly at inference time rather than relying solely on learned appearance priors.
2.2. Geometry-Guided Image Editing and Inpainting
A growing body of work incorporates geometric information into diffusion-based image editing and inpainting pipelines. Methods such as ControlNet [27] and subsequent geometry-guided editing approaches inject spatial structure, including depth maps or surface normals, into the diffusion network to improve structural alignment. This line of work is enabled by rapid progress in monocular geometry estimation: Depth Anything [10, 22, 23] and MoGe/MoGe2 [17, 18] now provide standard building blocks for lifting single images into 3D, including for depth-conditioned editing and reflection synthesis.
More closely related to our setting, several inpainting approaches have been trained specifically to generate physically consistent reflections. Dhiman et al. [5] formulate reflection synthesis as a depth-conditioned inpainting task trained on a large-scale synthetic dataset. A subsequent extension [4] improves generalization through targeted data augmentation and curriculum training strategies; both methods obtain depth from a monocular estimator and feed it to the network as an additional conditioning input. In both cases, geometric information influences the predicted noise at each diffusion step, but reflection consistency is learned implicitly through training rather than explicitly enforced at inference time, leaving room for geometrically inconsistent reflections when the learned prior dominates.
In contrast, our method is training-free and does not require mirror-specific examples. Instead, we impose deterministic geometric projection before the denoising process and use diffusion mostly to complete regions that are not constrained by reflection geometry.
2.3. Evaluating Geometric Consistency of Mirror Content
Existing mirror inpainting works [4, 5] are typically evaluated using image-level reconstruction and perceptual metrics such as PSNR, SSIM, and LPIPS over the mirror region, along with CLIP similarity computed on the full image. While these metrics capture appearance similarity, they do not explicitly assess whether the generated reflection is geometrically consistent with the scene. Evaluating over the entire mirror mask mixes regions whose appearance is largely determined by scene geometry with regions that admit multiple visually plausible completions, reducing sensitivity to reflection correctness. To partially address geometry, Dhiman et al. [5] introduce a segmentation-based IoU metric over reflected object silhouettes; however, this proxy captures only coarse shape and cannot guarantee physically correct reflections. For example, two reflections may share similar outlines while differing in pose, scale, or viewpoint, leading to physically inconsistent mirror appearance despite high IoU. The follow-up work Dhiman et al. [4] removes this geometry proxy and relies primarily on perceptual similarity within the mirror region, additionally selecting the best sample among multiple generated candidates based on similarity over the scene region, which can bias evaluation. Relatedly, Yin et al. [25] evaluate physical realism for refractive objects using masked structural metrics restricted to pixels whose appearance is constrained by ray tracing; however, this evaluation requires ground-truth geometry and cannot be applied to real images.
In contrast, we propose reflection-specific geometric assessment that focuses only on mirror pixels whose appearance is determined by scene geometry, and that can be estimated even without ground-truth depth.
3. Method
Given a masked input image in which the mirror region is blank, a corresponding mirror mask, and a textual prompt guiding appearance generation, our method reconstructs mirror reflections using a geometry-aware inpainting pipeline (figure 3). We first leverage 3D scene attributes (ground-truth or estimated with a monocular geometry estimator [10, 18]) to project visible scene content into the mirror in a geometrically consistent manner (Sec. 3.1), identifying reflection pixels that can be deterministically recovered from scene geometry while leaving occluded or uncertain regions unresolved.
To fill the remaining regions, we introduce two complementary masks: a geometry constraint mask derived from the projection and a generative refinement mask corresponding to the full mirror region. During diffusion-based inpainting, interpolating noise predictions guided by these masks balances geometric consistency with the model's learned priors, reducing projection artifacts and improving reflection realism (Sec. 3.2); Appendix B gives the full inference pipeline.
3.1. Projection of Content From Scene Onto the Mirror
We first recover mirror content geometrically, constraining generation and reducing the inpainting mask.

Figure 3. Overview of the proposed method. We first estimate a 3D mesh and camera parameters from the input image using a monocular geometry estimator. Using the reconstructed 3D geometry, we project the correct reflected content onto the mirror region, from which we derive the inpainting mask corresponding to the remaining regions to be filled. During diffusion inpainting, two mask-guided noise predictions are computed and interpolated to balance geometric constraints with generative refinement (Eq. (1)); blue arrows denote the projection-derived geometry constraint mask; orange arrows denote the generative refinement mask corresponding to the full mirror region.
Given an input masked image, we estimate geometry as well as the camera parameters using a monocular geometry estimator [10, 18] and reconstruct a 3D mesh. Using the mirror mask, we determine the mirror plane by fitting a 3D plane to the set of 3D points originating from the masked region, orienting the mirror normal towards the camera. On MirrorBench only, the geometry estimator occasionally returned non-finite depth values for mirror pixels; when fewer than 1% of mirror points have a finite 3D value, we skip the projection and fall back to direct inpainting of the full mirror region. We reflect the reconstructed 3D scene across the estimated mirror plane and render the reflected geometry using Blender [1], supporting arbitrary mirror orientations; only scene content between the camera origin and the mirror plane is considered, and back-facing polygons are rendered black to model occlusions.
The resulting rendering produces both the reflected view and a mask indicating regions that remain unobserved. We remove content outside the mirror using the mirror mask, yielding the final inpainting mask (the geometry constraint mask) and the input image , obtained by compositing the rendered reflection into the masked mirror region.
3.2. Geometry-Constrained Inpainting via Two-Mask Decomposition
After projecting known scene content onto the mirror, we fill the remaining regions. We instantiate our approach using FLUX.1 Fill [6], a publicly available masked inpainting model. Applying this pipeline directly introduces artifacts from the geometric projection stage: (1) occlusion recov-
ery failures, where scene regions that should occlude others in the reflection are not visible in the input and therefore not reconstructed; and (2) inaccurate geometry estimates, whose projection errors propagate because FLUX.1 Fill fills only unprojected regions (figure 5).
To address projection artifacts while preserving geometric constraints, we model mirror synthesis using two complementary masks. The projected inpainting mask defines a geometry constraint mask, covering only mirror pixels whose reflection could not be recovered from scene geometry. The original mirror mask defines a generative refinement mask spanning the entire mirror region, representing the model's unconstrained generative prior and allowing the diffusion process to correct projection errors and complete missing or uncertain reflection content.
We implement this decomposition during diffusion by computing two velocity predictions for the rectified-flow denoiser at each denoising step , differing only in the inpainting mask provided to the network: , obtained using the geometry constraint mask , and , obtained using the generative refinement mask. The interpolated prediction is
where is the largest timestep and .
This formulation reflects the complementary roles of the two masks across diffusion timesteps. Early steps determine global reflection structure, where the geometry constraint mask provides strong physical guidance, while later steps refine appearance details and benefit from the generative refinement mask and the model priors. Interpolating between the two predictions thus enforces structural consistency while allowing flexible completion of unconstrained regions. We normalize the mixed prediction to match the norm of , preserving the correct noise scale, and restrict mixing to timesteps since interpolating across all timesteps empirically degraded results. The exponent controls transition sharpness: raising keeps the geometry-constraint mask's weight close to zero for most of the remaining denoising steps, so the mixed prediction is generative-refinement-dominated for longer, with the weight rising sharply only in the first few steps after mixing begins at — a sharper switch from the geometry-constraint to the generative-refinement mask than a lower exponent would give. This gives the model more freedom later but can weaken geometric adherence.
To quantitatively select the interpolation parameters n and , we use a two-stage criterion. First, we form a safe pool of configurations whose constrained-pixel masked PSNR against the GT image is within 0.5 dB of the best configuration. This filters out settings that provide too much generative freedom and therefore deviate from the geometric constraints. Second, within this safe pool, we select the configuration with the lowest constrained-pixel masked PSNR against the initial projected image, which indicates the largest departure from the projection while remaining close to the GT-constrained solution. The full ablation and plots are provided in Appendix D. This yields n=13 and as our final configuration, which we use in all reported experiments.
Our method assumes the backbone inpainting model accepts an explicit mask as part of the network input to the transformer. While newer models such as FLUX.2 and Qwen-Image-Edit are available, their inpainting inference follows a latent-compositing approach: the transformer operates without explicit mask conditioning, and the inpainted region is blended into the latent at each step after prediction. Our dual-mask approach is therefore incompatible because it requires two predictions through one mask-conditioned network. These models may also leave masks unchanged.
4. Experiments
Datasets. For synthetic data, we use MirrorBench-V2, the benchmark introduced alongside MirrorVerse [4], which provides ground-truth mirror masks and geometry. We run inference both with and without access to ground-truth geometry, while using the ground-truth geometry for evaluation in both settings. Since MirrorBench-V2 does not reflect real-world complexity, we complement it with 50 real captured images with manually annotated masks and prompts, covering diverse environments and mirror placements. Existing real-world mirror datasets (MSD [24], DLSU-OMRS [8], PMD [11]) target segmentation and are unsuitable for quantitative inpainting evaluation (see Appendix C); we additionally use a small validation set of 15 Blender-rendered images to tune hyperparameters (see Appendix D); data and prompts are available at https://github.com/OfekBasson/Fill-My-Mirror, which also links to the datasets on Hugging Face.
Baselines. We compare against three representative paradigms: (1) Mask-based inpainting without geometric intervention tests learned priors alone and corresponds to removing our projection stage; we use FLUX.1 Fill [6]. (2) General-purpose image editing tests mirror completion without explicit geometry; we use Qwen-ImageEdit [20]. (3) Depth-conditioned, geometry-aware mirror inpainting represents prior geometric approaches; we use MirrorFusion 2.0 [4].
Metrics. Mirror pixels are either constrained by visible scene content, with a well-defined reference, or unconstrained because they reflect unseen content and admit multiple plausible completions. We report PSNR, SSIM, and LPIPS over the full mirror and over constrained pixels, obtained from ground truth on synthetic scenes or estimated via Reflection Consistency Score otherwise (Sec. 4.4); we also report full-image CLIP similarity. On MirrorBench-V2, only 15% of mirror pixels are constrained on average (85% unconstrained), which makes the constrained-pixel comparison the more meaningful evaluation.
Implementation Details. See Appendix A.
4.1. Qualitative Results
Figure 4 shows qualitative comparisons on real captured images without access to ground-truth geometry. Compared to baseline methods, our approach produces mirror reflections that better align with the visible scene geometry, preserving structural consistency across the mirror boundary, while competing methods often generate visually plausible reflections that exhibit misaligned structures or incorrect orientation. Additional qualitative results on both real images and MirrorBench-V2 are provided in Appendix G. These observations are consistent with the quantitative results below.
4.2. Quantitative Results
4.2.1. Synthetic Scenes with Ground-Truth Geometry
Table 1 compares methods on MirrorBench-V2 [4] with and without access to ground-truth geometry during inference, evaluated over all mirror pixels and over geometrically constrained pixels. Our method achieves better scores on all metrics. FLUX.1 Fill, which does not take depth as a conditioning input, still outperforms MirrorFusion 2.0 due to its

Figure 4. Qualitative comparison of mirror inpainting results. Columns (left to right): Ground Truth, MirrorFusion 2.0, FLUX.1 Fill, Qwen-Image-Edit, and Ours. In the first row, our method correctly reproduces the structure and position of the bed and headboard, closely matching the ground truth, whereas other methods exhibit structural distortions or misalignment. In the second row, only our method accurately reflects the closet geometry and placement. In the third row, our result correctly reflects the door in both color and position, while competing methods produce incorrect color, misalignment, or both. Additional results are provided in Appendix G.
Table 1. Quantitative comparison on synthetic scenes (MirrorBench-V2). PSNR, SSIM, and LPIPS are reported over constrained mirror pixels, whose content is geometrically determined by the scene and identified using ground-truth geometry, and over the full mirror.
| Method | Geom. Source | Constrained Mirror Pixels | Full Mirror Metrics | ||||
|---|---|---|---|---|---|---|---|
| PSNR ↑ | SSIM ↑ | LPIPS ↓ | PSNR ↑ | SSIM ↑ | LPIPS ↓ | ||
| Qwen-Image-Edit | ✗ | 10.59 | 0.24 | 0.12 | 9.27 | 0.25 | 0.34 |
| MirrorFusion 2.0 | GT | 10.75 | 0.24 | 0.06 | 9.89 | 0.25 | 0.28 |
| FLUX.1 Fill | ✗ | 14.87 | 0.32 | 0.04 | 13.21 | 0.37 | 0.22 |
| Ours | Est. | 16.35 | 0.37 | 0.03 | 13.81 | 0.38 | 0.22 |
| Ours | GT | 21.92 | 0.59 | 0.02 | 14.42 | 0.44 | 0.19 |
stronger prior. Qwen-Image-Edit showed inconsistent behavior across experiments, in some cases leaving the mirror region unchanged, which can explain its poor quantitative results. When ground-truth geometry is provided at inference time (a fair comparison to MirrorFusion 2.0), our results improve further. CLIP similarity remains identical (0.27) across methods, reflecting low sensitivity to localized mirror reconstruction differences.
Table 2. Quantitative comparison on real images. PSNR, SSIM, and LPIPS are reported over constrained mirror pixels identified by RCS (Sec. 4.4) and over the full mirror. All methods operate without ground-truth depth.
| Method | Constrained Mirror Pixels (Reflection Consistency Score) | Full Mirror Metrics | ||||
|---|---|---|---|---|---|---|
| PSNR ↑ | SSIM ↑ | LPIPS ↓ | PSNR ↑ | SSIM ↑ | LPIPS ↓ | |
| MirrorFusion 2.0 | 10.12 | 0.37 | 0.07 | 10.05 | 0.39 | 0.13 |
| Qwen-Image-Edit | 10.16 | 0.34 | 0.07 | 10.44 | 0.36 | 0.13 |
| FLUX.1 Fill | 13.72 | 0.45 | 0.05 | 13.42 | 0.47 | 0.11 |
| Ours (no interpolation) | 14.48 | 0.48 | 0.05 | 15.51 | 0.48 | 0.10 |
| Ours (with interpolation) | 14.64 | 0.49 | 0.05 | 13.62 | 0.48 | 0.10 |
4.2.2. Real Images without Ground-Truth Geometry
We compare our method against FLUX.1 Fill, Qwen-Image-Edit, and MirrorFusion 2.0 on real images without ground-truth geometry (table 2), reporting PSNR, SSIM, and LPIPS over pixels estimated as geometrically constrained by Reflection Consistency Score (Sec. 4.4) and over the full mirror region. Our method improves all metrics for both masks. MirrorFusion 2.0 performs worst

Figure 6. Reflection Consistency Score (RCS) mask construction. We decompose the input into a scene view and a horizontally flipped mirror view, estimate MAST3R correspondences with the two views constrained to share camera intrinsics, and dilate matched mirror pixels to form the evaluation mask. In this example, the scooter is visible in the input, so the corresponding portions of its reflection are geometrically constrained and included; regions reflecting unseen content admit multiple plausible completions and are excluded.
among all methods on real images — a larger gap than on MirrorBench-V2 — suggesting it overfits to its synthetic training distribution. The performance gap narrows on the full-mirror mask, as unconstrained regions admit multiple plausible hallucinations that add variance to pixel-based metrics, diluting the differences that RCS isolates by focusing on geometrically constrained pixels.
As a robustness check tolerating small local misalignment, Appendix I compares standard constrained-region PSNR with jitter-tolerant PSNR; the results there further support our claims.
We next ablate the dual-mask decomposition with noise interpolation: removing it degrades scores on almost all metrics (qualitative examples in figure 5). We verify these findings via paired significance tests (paired t-test and Wilcoxon signed-rank, Benjamini–Hochberg corrected across baselines per metric): the dual-mask decomposition yields statistically significant improvements over the no-interpolation ablation on all full-mirror and RCS-constrained metrics; improvements over FLUX.1 Fill are significant on all RCS-constrained metrics; and improvements over Qwen-Image-Edit and MirrorFusion 2.0 are significant on all evaluated metrics.
Seed consistency results are provided in Appendix F. Our method not only outperforms baselines on both mask types but also produces substantially more stable outputs across seeds, suggesting our geometric conditioning anchors the output to physical scene constraints rather than relying on random generation.
4.3. Robustness to Imperfect Geometry
To examine when noise interpolation helps most, we synthetically degrade the projection input depth and measure the resulting PSNR/SSIM gap between our method with and without interpolation. Given ground-truth depth and MoGe-v2 estimate , we degrade the depth as
and re-run our pipeline with in place of the estimated geometry. As shown in Appendix H, the gap grows as geometry degrades (Pearson for PSNR, for SSIM): interpolation is mildly harmful with exact geometry but increasingly corrects occlusions and errors as geometry worsens.
4.4. Reflection Consistency Score
Without ground-truth geometry, we cannot directly isolate geometrically constrained mirror pixels for evaluation. We therefore propose Reflection Consistency Score (RCS), illustrated in figure 6. Following Reflect3r [21], we decompose the input into a scene view and a horizontally flipped mirror view and use MAST3R [9], with the two views constrained to share camera intrinsics, to estimate dense pixel correspondences. Matched mirror pixels are dilated and intersected with the mirror region to form the evaluation mask, over which we compute masked PSNR, SSIM, and LPIPS. Parameter selection and full validation are provided in Appendix E.
Crucially, RCS is independent of our generation pipeline and does not reuse the signal that produced our results. Generation relies on monocular geometry estimation, mirror-plane fitting, and explicit Blender projection; RCS uses none of these components or outputs, constructing its mask solely from independent MAST3R correspondences. It therefore cannot favor our method by evaluating against its own geometry. On MirrorBench-V2, RCS achieves 0.72 precision () and 0.88 recall ().
5. Limitations
The main limitation of our approach is its dependence on the accuracy of estimated scene geometry. When recovered geometry is inaccurate, the projected reflection may become misaligned, and although noise interpolation mitigates moderate errors, it cannot fully resolve large structural inconsistencies. Importantly, our framework is not tied to a particular geometry estimator, so it benefits as more accu-
Occlusion Recovery Failures
Geometry Estimation Errors

Figure 5. Failure cases and effect of noise interpolation. Columns: Left: occlusion recovery failures due to missing geometry (door visible through bathrobe; floor visible inside cylinder). Right: geometry estimation errors causing structural distortions (smeared clothes reflection; uneven whiteboard frame with border gap). Rows: Top: projection only; Middle: projection + inpainting without noise interpolation (artifacts remain); Bottom: projection + inpainting with noise interpolation (ours), which resolves occlusion inconsistencies and reduces geometric distortions.
rate estimation methods become available. As the projected region shrinks, our pipeline increasingly relies on the inpainting model's generation prior, converging to its behavior when no projection is available.
Since our projection copies colors directly from the observed view, view-dependent effects such as specular highlights may appear incorrect in the reflection, and glass-window reflections — which combine reflection with transmission — are outside our scope.
In addition, our formulation assumes a single planar mirror. Handling multiple mirrors or higher-order inter-reflection effects would require extending the geometric projection stage, which we leave for future work. The method also does not address curved mirrors.
Adding geometry estimation and projection to inpainting raises runtime to 100.5s per image, versus 47.4s for FLUX.1 Fill alone (2.1×), at the same GPU memory (24.5GB).
6. Conclusion
We introduced Fill My Mirror, a training-free method for geometry-aware mirror inpainting that decomposes the problem into deterministic geometric projection and generative completion of the remaining regions, using a two-mask diffusion strategy with noise interpolation to balance physical reflection constraints with the model's learned priors and resolve occluded or uncertain regions.
Experiments on synthetic and real datasets show consistent improvements over inpainting, image editing, and mirror-aware generation baselines, particularly on geometrically constrained mirror pixels, and robustness to imperfect geometry. We further propose Reflection Consistency Score, a correspondence-based protocol for evaluating reflection correctness on real images without ground-truth geometry.
References
[1] Blender Online Community. Blender – a 3d modelling and rendering package. https://www.blender.org, 2024. 4
[2] Ali Borji. Mirrors: The blind spot of image and video generation models. Available at SSRN 5143372, 2025. 2
[3] Dong-Yu Chen, Hao-Xiang Chen, Qun-Ce Xu, and Tai Jiang Mu. Rs-specsdf: Reflection-supervised surface reconstruction and material estimation for specular indoor scenes. Graphical Models, 140:101277, 2025. 3
[4] Ankit Dhiman, Manan Shah, and R Venkatesh Babu. Mirrorverse: Pushing diffusion models to realistically reflect the world. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 11239–11249, 2025. 2, 3, 5, 12, 13
[5] Ankit Dhiman, Manan Shah, Rishubh Parihar, Yash Bhalgat, Lokesh R Boregowda, and R Venkatesh Babu. Reflecting reality: Enabling diffusion models to produce faithful mirror reflections. In 3DV, 2025. 2, 3
[6] Flux.1 Fill Development Team. Flux.1 fill. https://bfl.ai/blog/24-11-21-tools, 2024. Software; accessed: 2026-01-20. 4, 5
[7] Joshua Gluckman and Shree K Nayar. Catadioptric stereo using planar mirrors. International Journal of Computer Vision, 44(1):65–79, 2001. 2
[8] Mark Edward M. Gonzales, Lorene C. Uy, and Joel P. Ilao. Designing a lightweight edge-guided convolutional neural network for segmenting mirrors and reflective surfaces. Computer Science Research Notes, 3301:107–116, 2023. 5, 11
[9] Vincent Leroy, Yohann Cabon, and Jérôme Revaud. Grounding image matching in 3d with mast3r. In European Conference on Computer Vision, pages 71–91. Springer, 2024. 7
[10] Haotong Lin, Sili Chen, Jun Hao Liew, Donny Y. Chen, Zhenyu Li, Guang Shi, Jiashi Feng, and Bingyi Kang. Depth anything 3: recovering the visual space from any views. arXiv preprint arXiv:2511.10647, 2025. 3, 4, 11
[11] Jiaying Lin, Guodong Wang, and Rynson W.H. Lau. Progressive mirror detection. In Proc. CVPR, 2020. 5, 11
[12] Jiayue Liu, Xiao Tang, Freeman Cheng, Roy Yang, Zhihao Li, Jianzhuang Liu, Yi Huang, Jiaqi Lin, Shiyong Liu, Xiaofei Wu, et al. Mirrorgaussian: Reflecting 3d gaussians for reconstructing mirror reflections. In ECCV, 2024. 2
[13] Yohan Poirier-Ginter, Jeffrey Hu, Jean-Francois Lalonde, and George Drettakis. Editable physically-based reflections in raytraced gaussian radiance fields. In Proceedings of the SIGGRAPH Asia 2025 Conference Papers, pages 1–12, 2025. 3
[14] Rui Rodrigues, João P Barreto, and Urbano Nunes. Camera pose estimation using images of planar mirror reflections. In European Conference on Computer Vision (ECCV), pages 382–395. Springer, 2010. 2
[15] Peter Sturm and Thomas Bonfort. How to compute the pose of an object without a direct view? In Asian Conference on Computer Vision (ACCV), pages 21–31. Springer, 2006. 2
[16] Leif Van Holland, Michael Weinmann, Jan U Müller, Patrick Stotko, and Reinhard Klein. Nerfs are mirror detectors: Us-
ing structural similarity for multi-view mirror scene reconstruction with 3d surface primitives. In 2025 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 1795–1807. IEEE, 2025. 2
[17] Ruicheng Wang, Sicheng Xu, Cassie Dai, Jianfeng Xiang, Yu Deng, Xin Tong, and Jiaolong Yang. Moge: Unlocking accurate monocular geometry estimation for open-domain images with optimal training supervision. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 5261–5271, 2025. 3
[18] Ruicheng Wang, Sicheng Xu, Yue Dong, Yu Deng, Jianfeng Xiang, Zelong Lv, Guangzhong Sun, Xin Tong, and Jiaolong Yang. Moge-2: Accurate monocular geometry with metric scale and sharp details, 2025. 3, 4, 11
[19] Zihan Wang, Shuzhe Wang, Matias Turkulainen, Junyuan Fang, and Juho Kannala. Gaussian splatting in mirrors: Reflection-aware rendering via virtual camera optimization. In 35th British Machine Vision Conference 2024, BMVC 2024, Glasgow, UK, November 25-28, 2024. BMVA, 2024. 2
[20] Chenfei Wu, Jiahao Li, Jingren Zhou, Junyang Lin, Kaiyuan Gao, Kun Yan, Sheng ming Yin, Shuai Bai, Xiao Xu, Yilei Chen, Yuxiang Chen, Zecheng Tang, Zekai Zhang, Zhengyi Wang, An Yang, Bowen Yu, Chen Cheng, Dayiheng Liu, Deqing Li, Hang Zhang, Hao Meng, Hu Wei, Jingyuan Ni, Kai Chen, Kuan Cao, Liang Peng, Lin Qu, Minggang Wu, Peng Wang, Shuteng Yu, Tingkun Wen, Wensen Feng, Xiaoxiao Xu, Yi Wang, Yichang Zhang, Yongqiang Zhu, Yujia Wu, Yuxuan Cai, and Zenan Liu. Qwen-image technical report, 2025. 5
[21] Jing Wu, Zirui Wang, Iro Laina, and Victor Prisacariu. Reflect3r: Single-View 3D Stereo Reconstruction Aided by Mirror Reflections. 3DV, 2026. 2, 7
[22] Lihe Yang, Bingyi Kang, Zilong Huang, Xiaogang Xu, Jiashi Feng, and Hengshuang Zhao. Depth anything: Unleashing the power of large-scale unlabeled data. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10371–10381, 2024. 3
[23] Lihe Yang, Bingyi Kang, Zilong Huang, Zhen Zhao, Xiaogang Xu, Jiashi Feng, and Hengshuang Zhao. Depth anything v2. arXiv preprint arXiv:2406.09414, 2024. 3
[24] Xin Yang, Haiyang Mei, Ke Xu, Xiaopeng Wei, Baocai Yin, and Rynson W.H. Lau. Where is my mirror? In Proc. ICCV, 2019. 5, 11
[25] Yue Yin, Enze Tao, and Dylan Campbell. Refracting reality: Generating images with realistic transparent objects. arXiv preprint arXiv:2511.17340, 2025. 3
[26] Xianghua Ying, Kun Peng, Yongbo Hou, Sheng Guan, Jing Kong, and Hongbin Zha. Self-calibration of catadioptric camera with two planar mirrors from silhouettes. IEEE Transactions on Pattern Analysis and Machine Intelligence, 35(5):1206–1220, 2013. 2
[27] Lvmin Zhang, Anyi Rao, and Maneesh Agrawala. Adding conditional control to text-to-image diffusion models. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 3836–3847, 2023. 3
[28] Rui Zhang, Tianyue Luo, Weidong Yang, Ben Fei, Jingyi Xu, Qingyuan Zhou, Keyi Liu, and Ying He. Refgaussian: Dis-entangling reflections from 3d gaussian splatting for realistic rendering. arXiv preprint arXiv:2406.05852, 2024. 3
Supplementary Material
This supplementary material provides implementation details and pseudocode; a discussion of existing mirror datasets, their limitations for inpainting, and MirrorVerse examples; the full noise-interpolation hyperparameter selection and its qualitative effect; RCS parameter selection and validation; seed-consistency analyses over both constrained pixels and the full mirror; additional qualitative comparisons on real images and MirrorBench-V2; robustness analysis under imperfect geometry; and a jitter-tolerant PSNR robustness check.
A. Implementation Details
All experiments are conducted at a resolution of 1024 × 1024 pixels using 30 diffusion inference steps. All outputs are resized to the ground-truth resolution before computing evaluation metrics. For each method, we followed the official inference example provided in the model's source code as closely as possible. For Qwen-Image-Edit, the official example script uses Qwen/Qwen-Image-Edit; all reported results use the newer Qwen/Qwen-Image-Edit-2511 weights, which we found to produce better results. All inference scripts are available at https://github.com/OfekBasson/Fill-My-Mirror. The MirrorBench-V2 images were sampled with seed 0; real images were filled using seeds 0, 42, 512.
We provide implementations using two monocular geometry estimators: MoGe-v2 [18] and Depth Anything 3 [10]. Both can be used as drop-in replacements within our pipeline; all reported results use MoGe-v2. On an RTX 6000 Ada, the geometric projection stage takes an average of 38 seconds per image on the real-image dataset. Adding this stage on top of inpainting brings total runtime to 100.5s per image, versus 47.4s for FLUX.1 Fill alone (2.1×), at the same peak GPU memory (24.5GB).
B. Pseudocode
Algorithm B1 gives the full inference pipeline.
C. Existing Mirror Datasets and Their Limitations for Inpainting
Publicly available real-world mirror datasets — MSD [24], DLSU-OMRS [8], and PMD [11] — were designed for the mirror segmentation task and are not directly suitable for quantitative inpainting evaluation. They share several limitations in this context:
- Ambiguous or invisible reflections. Many images contain mirrors that do not visibly reflect any identifiable scene content, either due to camera angle, extreme fore-shortening, or content that lies entirely outside the field of
Algorithm B1 Full Inference Pipeline
Require: Masked image , mirror mask , text prompt , interpolation start timestep , exponent , projection skip threshold
Ensure: Inpainted image
1: Estimate geometry and camera parameters from [10, 18]
2: Reconstruct 3D mesh from and
3: if then unreliable geometry; skip projection
4: ;
5: else
6: Fit plane to mirror 3D points; orient normal toward camera
7: Filter scene to points lying between the camera and
8: Reflect filtered scene across ; render image
9: Obtain rendered reflection and projected-pixel mask
10: unprojected mirror pixels
11: with mirror region composited with
12: end if
13: for each denoising step do
14: geometry-constrained
15: if then
16:
17: else
18: generative refinement
19:
20:
21: preserve noise scale
22: end if
23: Update latent using
24: end for
25: return decoded image
view. For such images, the reflection can be hallucinated in many equally valid ways, making pixel-level ground truth unreliable.
-
Non-planar and partial mirrors. The datasets include curved mirrors and mirrors that are partially occluded or cropped, which violates the planar mirror assumption required for geometry-based evaluation.
-
No text captions. None of the datasets include scene descriptions, which are required by all prompt-conditioned inpainting methods including ours.
To still make use of these established benchmarks, we evaluate our method on a subset of images from the Mir-rorVerse dataset [4], which is also based on MSD and provides generated GT reflections alongside text prompts. We use the prompts provided in that paper and compare against the MirrorVerse results and FLUX.1 Fill. As shown in figure C1, our method produces more geometrically consistent reflections in the mirrors.
D. Noise Interpolation: Hyperparameter Selection and Qualitative Effect
We analyze the effect of the noise interpolation parameters introduced in Sec. 3.2, which control the balance between geometric constraints and generative refinement. The exponent determines the sharpness of the transition between geometry-guided and generative noise predictions, while the start timestep defines the diffusion stage at which interpolation begins.
D.1. Quantitative hyperparameter selection
We quantitatively select and using the constrained-pixel masked PSNR. We first compare each configuration to the GT image and define a safe pool containing all configurations whose constrained-pixel masked PSNR is at most 0.5 dB below the best configuration. This threshold is used as a conservative heuristic for excluding configurations that deviate too much from the geometric constraints.
Among the configurations in this safe pool, we then choose the one with the lowest constrained-pixel masked PSNR against the initial projected image. A lower PSNR against the projection means that the output moved farther from the initial projection, which corresponds to more generative freedom. This two-stage rule therefore selects a configuration that stays close to the GT-constrained solution while maximizing generative refinement within the safe pool.
As discussed in Sec. 3.2, larger values of produce a sharper transition: the geometry-constraint mask's weight stays low for most of the interpolation interval, so the mask switches to the generative-refinement mask more abruptly near .
As shown in figure D2, for , the interpolation start time has little effect on the final result. For , the interpolation has a stronger effect when it begins earlier. In general, earlier interpolation starts and sharper mask transitions provide more generative freedom, but can also make the model ignore the geometric constraints. This effect becomes stronger for and . In contrast, for and , the differences in constrained-pixel masked PSNR against the GT image are small. When and , the choice of becomes more important.
As shown in figure D3, the projected-image comparison shows a similar trend: earlier interpolation and sharper transitions lead to a larger departure from the projection. We therefore choose the configuration that maximizes this departure from the projection among the configurations that remain within 0.5 dB of the best GT masked PSNR. Qualitative examples illustrating the effect of this choice are shown in figures D4 and D5.
E. RCS Parameter Selection and Validation
This section provides the parameter-selection and validation details omitted from the main text.
We select the dilation radius and iteration count for the Reflection Consistency Score (RCS) mask estimation by performing a grid search over both parameters on 12 of the 15 Blender scenes in our hyperparameter validation set (resolution ), excluding 3 scenes with fewer than 500 matched correspondence pixels as their sparsity is unrepresentative of the dataset. For each candidate pair , we apply the dilation step described in Sec. 4.4, intersect the result with the mirror region, and compare against the ground-truth constraint mask using with , a criterion that weights precision over recall, favouring mask fidelity while still penalising overly sparse masks.
Figure E6 shows the mean score as the iteration count varies, with one panel per radius . Few iterations yield sparse masks with high precision but low recall; more iterations expand coverage at the cost of precision. The criterion selects , , achieving mean precision 0.85, recall 0.90, and , which we use for an image throughout.
Figure E7 shows per-iteration overlays for two representative Blender scenes alongside the ground-truth constraint mask, illustrating how additional dilation iterations progressively expand mask coverage at the selected radius.
Figure E8 shows the per-scene precision and recall of the estimated RCS masks against the MirrorBench-V2 ground-truth constraint masks, underlying the aggregate validation results reported in Sec. 4.4.
F. Seed Consistency
Figure F9 analyzes seed consistency on real images over the geometrically constrained region. Our method not only outperforms the baselines but also produces substantially more stable outputs across seeds, suggesting that our geometric conditioning anchors the output to physical scene constraints rather than relying on random generation.
Figure F10 shows the corresponding analysis over the full mirror mask.
As expected, this variance gap is smaller when measured over the full mirror mask. Unlike the geometrically constrained region, the full mask also includes pixels with no geometric constraint, where multiple different reflections are equally plausible. Because every method — including ours — must hallucinate content for these unconstrained

Figure C1. Qualitative comparison on images from the MSD dataset. The examples, text prompts, and MirrorVerse outputs are taken directly from the MirrorVerse [4] paper, rather than selected by us. Columns (left to right): GT, MirrorVerse, FLUX.1 Fill, and Ours. Even on these examples selected by the MirrorVerse authors, our method produces more geometrically consistent reflections, while the other methods exhibit incorrect orientation or content.
pixels, they add cross-seed variance regardless of method, narrowing our relative advantage.
G. More Qualitative Results
We present additional qualitative comparisons on real captured images without access to ground-truth geometry, complementing figure 4. All methods are evaluated using identical prompts and seeds. As shown in table G1, generative baselines often produce visually plausible reflections but exhibit geometric inconsistencies such as incorrect orientation, distorted structure, or misaligned reflected objects. In contrast, our method preserves reflection geometry while maintaining visual realism. Table G2 provides additional comparisons on MirrorBench-V2.


Figure D2. Constrained-pixel masked PSNR against the GT image for different n and values. Gray configurations are more than 0.5 dB below the best GT masked PSNR and are therefore excluded from the safe pool; colored configurations remain inside the safe pool. Error bars show mean standard deviation across scenes. Earlier interpolation starts and sharper mask transitions increase generative freedom, but can also reduce adherence to the geometric constraints.
H. Robustness to Imperfect Geometry
To examine when noise interpolation helps most, Sec. 4.3 synthetically degrades the projection input depth (Eq. (2)) and measures the resulting PSNR/SSIM gap between our method with and without interpolation. Figure H11 shows this gap as a function of the depth-degradation factor : when geometry is exact, interpolation is mildly harmful, needlessly departing from an already-correct projection, but as projected geometry becomes less reliable it increasingly recovers from occlusion inconsistencies and geometric errors, buying robustness precisely when the projected geometry is least trustworthy.
I. Additional Robustness: Jitter-Tolerant PSNR
Standard constrained-region PSNR compares corresponding pixels directly. To measure sensitivity specifically to small local misalignment, we additionally compute jitter PSNR: for each constrained ground-truth pixel independently, we search a -pixel neighborhood in the generated image, retain the nearby pixel with the smallest squared error, and average these minimum errors before converting them to PSNR.
Advantages. First, standard pixel-wise PSNR cannot distinguish incorrect content from correct content shifted by one or two pixels, for example due to minor resampling or interpolation artifacts in the generation pipeline. Jitter PSNR isolates how much of the score is affected by this narrow form of noise rather than treating every one-pixel misalignment as a content error. Second, and critically, our method remains highest under jitter PSNR on both datasets; the ordering is otherwise preserved, except that Qwen-2511 and MirrorFusion 2.0 tie on real images (table 13).
Limitation. Jitter PSNR imposes no coherence constraint across pixels: each pixel independently selects its best local offset, without requiring neighboring pixels to agree on a consistent displacement. It therefore does not verify that content moved together as it would under a physically plausible registration error.


Figure D3. Constrained-pixel masked PSNR against the initial projected image. The colors match the safe-pool configurations from the GT comparison, while gray configurations are outside the safe pool. Circles denote non-selected configurations, and the rhombus marks the selected configuration. The selected configuration is the safe-pool member with the lowest projected-image PSNR, indicating the largest change from the projection while remaining within the GT-based safe pool. Error bars show mean standard deviation across scenes.

Figure D4. Qualitative influence of (rows) and (columns) on the generated image for Example 1. When or when , smearing artifacts in the pillow, visible on the left side of the mirror, are not corrected by the generative refinement mask. Conversely, at , , the model increasingly ignores the projected content and relies on its learned prior, producing incorrect shadow reflections and wrong sofa orientation. The blue outline marks our chosen configuration (, ), which avoids both failure modes.

Figure D5. Qualitative influence of (rows) and (columns) on the generated image for Example 2. At with , the model fails to preserve the sofa reflection; for , it additionally shrinks the mirror region. The blue outline marks our chosen configuration ().

Figure E6. score versus dilation iteration count , for each dilation radius (mean across the 12 Blender scenes with at least 500 matched correspondence pixels; 3 scenes with sparser correspondences are excluded as unrepresentative of the dataset; , i.e. no dilation, is omitted as it tops out far below ). The red dashed vertical line marks the iteration count that maximises for that radius; the red dot marks the corresponding value. Because weights precision over recall, the criterion favours mask fidelity while still requiring reasonable coverage. The optimal iteration count varies with radius (: ; : ; : ), with achieving the best overall score (, precision 0.85, recall 0.90).

Figure E7. RCS dilation-iteration sweep (radius , the selected operating radius) for two Blender scenes. The first column shows the ground-truth (GT) geometrically-constrained mirror pixels. The remaining columns show the estimated RCS mask (red overlay) for increasing iteration counts ; the selected operating point is labelled “ours”. Fewer iterations () leave the mask overly sparse, while more iterations () over-expand it beyond the true constrained region; the selected visibly gives the best balance between precision and recall.

Figure E8. Per-scene precision and recall of the RCS mask against the ground-truth geometry-constrained mask, across all the scenes in MirrorBench-V2 (chosen operating point: radius = 5, iterations = 1). The RCS mask achieves a mean precision of 0.72 () and a mean recall of 0.88 (), indicating that it reliably approximates the ground-truth constrained pixels across scenes.


Figure F9. Seed consistency on real captured images over the geometrically constrained region. Left: Average PSNR per method across three random seeds. Right: Mean within-image standard deviation across seeds (lower is better); a taller bar means the method is more sensitive to the choice of random seed. Our method produces substantially more consistent results than the baselines, indicating that our geometric conditioning anchors the output to the scene's physical constraints rather than relying on random generation. Interpolation slightly raises the deviation, reflecting that the refinement mask genuinely refines the overall structure — including the constrained pixels — rather than leaving them fixed.


Figure F10. Seed consistency analysis on real captured images (PSNR over the full mirror mask). Left: Average PSNR per method, broken down by random seed. Each group of bars shows the same model evaluated with three different random seeds. Right: Mean within-image standard deviation across seeds per method (lower is better). Compared to the constrained-region results in figure F9, the variance gap between methods is smaller here, as unconstrained mirror pixels can be plausibly hallucinated in multiple ways by all methods.


Figure H11. Interpolation gain as geometry degrades. Gap between our method with and without noise interpolation (mean ± standard error over 20 MirrorBench-V2 scenes), evaluated on the full mirror mask, as a function of the depth-degradation factor from Eq. (2), for PSNR (left) and SSIM (right). When geometry is exact ( ), interpolation is mildly harmful, slightly departing from an already-correct projection. As soon as geometry deviates from ground truth ( ), the gap flips sign, and it continues to grow gradually as increases further, indicating that interpolation contributes increasingly more as the projected geometry becomes less reliable.
Table G1. Additional qualitative comparison on real captured images without ground-truth geometry. Columns (left to right): Ground Truth, MirrorFusion 2.0, FLUX.1 Fill, Qwen-Image-Edit, and our method. Our approach preserves geometric alignment across mirror boundaries and produces consistent reflected structure, while competing methods exhibit orientation errors, structural distortions, or inconsistent occlusions. All methods use identical prompts and the same seeds.
GT
MF2.0
FLUX.1Fill
Qwen
Ours

Table G1. Additional qualitative comparison on real captured images without ground-truth geometry (continued).

Table G2. Additional qualitative comparison on MirrorBench-V2. Columns (left to right): Ground Truth, MirrorFusion 2.0, FLUX.1 Fill, Qwen-Image-Edit, and our method.

Table G2. Additional qualitative comparison on MirrorBench-V2 (continued).
| GT | MF2.0 | FLUX.1Fill | Qwen | Ours |
|---|---|---|---|---|
Table I3. Standard and jitter-tolerant constrained-region PSNR. Jitter PSNR uses an independent ±3-pixel local search for each evaluated pixel. Our method remains highest on both datasets.
| Dataset | Method | Standard PSNR (dB) ↑ | Jitter PSNR (dB) ↑ |
|---|---|---|---|
| Real imagesseeds 0, 42, 512 | MirrorFusion 2.0 | 10.12 | 10.74 |
| Qwen-2511 | 10.16 | 10.74 | |
| FLUX.1 Fill | 13.72 | 15.74 | |
| Ours (no interpolation) | 14.48 | 16.55 | |
| Ours (with interpolation) | 14.64 | 16.67 | |
| MirrorBench-V2seed 0 | MirrorFusion 2.0 | 10.75 | 13.22 |
| Qwen-2511 | 10.59 | 11.34 | |
| FLUX.1 Fill | 14.87 | 18.96 | |
| Ours (estimated geometry) | 16.35 | 20.02 | |
| Ours (GT geometry) | 21.92 | 25.48 |