Reflecting Reality: Enabling Diffusion Models to Produce Faithful Mirror Reflections
Ankit Dhiman, Manan Shah, Rishubh Parihar, Yash Bhalgat, Lokesh R Boregowda, R Venkatesh Babu
TL;DR
The paper tackles generating faithful mirror reflections with diffusion models by framing it as an image inpainting task conditioned on depth. It introduces SynMirror, a large-scale synthetic dataset, and MirrorBench for evaluation, along with MirrorFusion, a depth-conditioned diffusion inpainting model that achieves geometrically consistent reflections. MirrorFusion outperforms zero-shot baselines and depth-agnostic inpainting approaches on reflective tasks, demonstrating robust 3D-aware generation and generalization to unseen objects. This work enables controllable, photo-realistic mirror reflections for image editing and augmented reality, while acknowledging limitations and societal considerations of diffusion-based generation.
Abstract
We tackle the problem of generating highly realistic and plausible mirror reflections using diffusion-based generative models. We formulate this problem as an image inpainting task, allowing for more user control over the placement of mirrors during the generation process. To enable this, we create SynMirror, a large-scale dataset of diverse synthetic scenes with objects placed in front of mirrors. SynMirror contains around 198k samples rendered from 66k unique 3D objects, along with their associated depth maps, normal maps and instance-wise segmentation masks, to capture relevant geometric properties of the scene. Using this dataset, we propose a novel depth-conditioned inpainting method called MirrorFusion, which generates high-quality, realistic, shape and appearance-aware reflections of real-world objects. MirrorFusion outperforms state-of-the-art methods on SynMirror, as demonstrated by extensive quantitative and qualitative analysis. To the best of our knowledge, we are the first to successfully tackle the challenging problem of generating controlled and faithful mirror reflections of an object in a scene using diffusion-based models. SynMirror and MirrorFusion open up new avenues for image editing and augmented reality applications for practitioners and researchers alike. The project page is available at: https://val.cds.iisc.ac.in/reflecting-reality.github.io/.
