thebluser nielsr HF Staff commited on
Commit
710230e
·
verified ·
1 Parent(s): fca0916

Enhance model card for LightSwitch with metadata, links, usage, and abstract (#1)

Browse files

- Enhance model card for LightSwitch with metadata, links, usage, and abstract (5430cab7c46aad184d62cf4b1bea8f3797139445)


Co-authored-by: Niels Rogge <[email protected]>

Files changed (1) hide show
  1. README.md +50 -3
README.md CHANGED
@@ -1,3 +1,50 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pipeline_tag: image-to-image
4
+ library_name: diffusers
5
+ ---
6
+
7
+ # LightSwitch: Multi-view Relighting with Material-guided Diffusion
8
+
9
+ This model, LightSwitch, was presented in the paper [LightSwitch: Multi-view Relighting with Material-guided Diffusion](https://huggingface.co/papers/2508.06494).
10
+
11
+ Project Page: [https://yehonathanlitman.github.io/light_switch/](https://yehonathanlitman.github.io/light_switch/)
12
+ GitHub Repository: [https://github.com/yehonathanlitman/LightSwitch](https://github.com/yehonathanlitman/LightSwitch)
13
+
14
+ ## Abstract
15
+ Recent approaches for 3D relighting have shown promise in integrating 2D image relighting generative priors to alter the appearance of a 3D representation while preserving the underlying structure. Nevertheless, generative priors used for 2D relighting that directly relight from an input image do not take advantage of intrinsic properties of the subject that can be inferred or cannot consider multi-view data at scale, leading to subpar relighting. In this paper, we propose Lightswitch, a novel finetuned material-relighting diffusion framework that efficiently relights an arbitrary number of input images to a target lighting condition while incorporating cues from inferred intrinsic properties. By using multi-view and material information cues together with a scalable denoising scheme, our method consistently and efficiently relights dense multi-view data of objects with diverse material compositions. We show that our 2D relighting prediction quality exceeds previous state-of-the-art relighting priors that directly relight from images. We further demonstrate that LightSwitch matches or outperforms state-of-the-art diffusion inverse rendering methods in relighting synthetic and real objects in as little as 2 minutes.
16
+
17
+ ## Usage
18
+
19
+ You can easily load LightSwitch components using the Hugging Face `diffusers` library. For full usage, including data preparation (masks, poses) and running the multi-view relighting, please refer to the official [GitHub repository](https://github.com/yehonathanlitman/LightSwitch).
20
+
21
+ ```python
22
+ from diffusers import DiffusionPipeline
23
+
24
+ # Load the pretrained model (example path from original GitHub README)
25
+ # Note: This is a UNet2DConditionModel, typically part of a larger DiffusionPipeline.
26
+ # The `thebluser/lightswitch-multi-fov` refers to a specific model version or pipeline on the Hub.
27
+ pipeline = DiffusionPipeline.from_pretrained("thebluser/lightswitch-multi-fov", trust_remote_code=True)
28
+
29
+ # Actual usage involves complex inputs (image, mask, intrinsics, extrinsics, envmap).
30
+ # The model is designed for multi-view relighting and integrates with 3DGS.
31
+ # Please consult the GitHub repository's "Running" section for detailed instructions:
32
+ # https://github.com/yehonathanlitman/LightSwitch#running
33
+ ```
34
+
35
+ <p align="center">
36
+ <img src="https://github.com/yehonathanlitman/LightSwitch/blob/main/assets/lightswitch_v2.svg" alt="Teaser image" width="600">
37
+ </p>
38
+
39
+ ## Citation
40
+
41
+ If you use any parts of our work, please cite the following:
42
+
43
+ ```bibtex
44
+ @inproceedings{litman2025lightswitch,
45
+ author = {Yehonathan Litman and Fernando De la Torre and Shubham Tulsiani},
46
+ title = {LightSwitch: Multi-view Relighting with Material-guided Diffusion},
47
+ booktitle = {ICCV},
48
+ year = {2025}
49
+ }
50
+ ```