MatSwap: Light-aware material transfers in images

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Lopes, Ivan, Deschaintre, Valentin, Hold-Geoffroy, Yannick, de Charette, Raoul
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866916810383687680
author Lopes, Ivan
Deschaintre, Valentin
Hold-Geoffroy, Yannick
de Charette, Raoul
author_facet Lopes, Ivan
Deschaintre, Valentin
Hold-Geoffroy, Yannick
de Charette, Raoul
contents We present MatSwap, a method to transfer materials to designated surfaces in an image photorealistically. Such a task is non-trivial due to the large entanglement of material appearance, geometry, and lighting in a photograph. In the literature, material editing methods typically rely on either cumbersome text engineering or extensive manual annotations requiring artist knowledge and 3D scene properties that are impractical to obtain. In contrast, we propose to directly learn the relationship between the input material -- as observed on a flat surface -- and its appearance within the scene, without the need for explicit UV mapping. To achieve this, we rely on a custom light- and geometry-aware diffusion model. We fine-tune a large-scale pre-trained text-to-image model for material transfer using our synthetic dataset, preserving its strong priors to ensure effective generalization to real images. As a result, our method seamlessly integrates a desired material into the target location in the photograph while retaining the identity of the scene. We evaluate our method on synthetic and real images and show that it compares favorably to recent work both qualitatively and quantitatively. We release our code and data on https://github.com/astra-vision/MatSwap
format Preprint
id arxiv_https___arxiv_org_abs_2502_07784
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle MatSwap: Light-aware material transfers in images
Lopes, Ivan
Deschaintre, Valentin
Hold-Geoffroy, Yannick
de Charette, Raoul
Computer Vision and Pattern Recognition
Graphics
We present MatSwap, a method to transfer materials to designated surfaces in an image photorealistically. Such a task is non-trivial due to the large entanglement of material appearance, geometry, and lighting in a photograph. In the literature, material editing methods typically rely on either cumbersome text engineering or extensive manual annotations requiring artist knowledge and 3D scene properties that are impractical to obtain. In contrast, we propose to directly learn the relationship between the input material -- as observed on a flat surface -- and its appearance within the scene, without the need for explicit UV mapping. To achieve this, we rely on a custom light- and geometry-aware diffusion model. We fine-tune a large-scale pre-trained text-to-image model for material transfer using our synthetic dataset, preserving its strong priors to ensure effective generalization to real images. As a result, our method seamlessly integrates a desired material into the target location in the photograph while retaining the identity of the scene. We evaluate our method on synthetic and real images and show that it compares favorably to recent work both qualitatively and quantitatively. We release our code and data on https://github.com/astra-vision/MatSwap
title MatSwap: Light-aware material transfers in images
topic Computer Vision and Pattern Recognition
Graphics
url https://arxiv.org/abs/2502.07784