fffiloni commited on
Commit
465cfae
·
verified ·
1 Parent(s): 0746159

Migrated files batch 1

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +1 -0
  2. LICENSE +201 -0
  3. ORIGINAL_README.md +314 -0
  4. assets/badge-website.svg +129 -0
  5. assets/logos/baai-logo.png +0 -0
  6. assets/logos/buaa-logo.png +0 -0
  7. assets/logos/nju-logo.png +0 -0
  8. assets/logos/tsinghua-logo.png +0 -0
  9. assets/teaser_v2_00.jpg +3 -0
  10. datasets/demos/human_movies_human_15.0/Base Color/frame_0000.jpg +0 -0
  11. datasets/demos/human_movies_human_15.0/Base Color/frame_0001.jpg +0 -0
  12. datasets/demos/human_movies_human_15.0/Base Color/frame_0002.jpg +0 -0
  13. datasets/demos/human_movies_human_15.0/Base Color/frame_0003.jpg +0 -0
  14. datasets/demos/human_movies_human_15.0/Base Color/frame_0004.jpg +0 -0
  15. datasets/demos/human_movies_human_15.0/Base Color/frame_0005.jpg +0 -0
  16. datasets/demos/human_movies_human_15.0/Base Color/frame_0006.jpg +0 -0
  17. datasets/demos/human_movies_human_15.0/Base Color/frame_0007.jpg +0 -0
  18. datasets/demos/human_movies_human_15.0/Base Color/frame_0008.jpg +0 -0
  19. datasets/demos/human_movies_human_15.0/Base Color/frame_0009.jpg +0 -0
  20. datasets/demos/human_movies_human_15.0/Base Color/frame_0010.jpg +0 -0
  21. datasets/demos/human_movies_human_15.0/Base Color/frame_0011.jpg +0 -0
  22. datasets/demos/human_movies_human_15.0/Base Color/frame_0012.jpg +0 -0
  23. datasets/demos/human_movies_human_15.0/Base Color/frame_0013.jpg +0 -0
  24. datasets/demos/human_movies_human_15.0/Base Color/frame_0014.jpg +0 -0
  25. datasets/demos/human_movies_human_15.0/Base Color/frame_0015.jpg +0 -0
  26. datasets/demos/human_movies_human_15.0/Base Color/frame_0016.jpg +0 -0
  27. datasets/demos/human_movies_human_15.0/Base Color/frame_0017.jpg +0 -0
  28. datasets/demos/human_movies_human_15.0/Base Color/frame_0018.jpg +0 -0
  29. datasets/demos/human_movies_human_15.0/Base Color/frame_0019.jpg +0 -0
  30. datasets/demos/human_movies_human_15.0/Base Color/frame_0020.jpg +0 -0
  31. datasets/demos/human_movies_human_15.0/Base Color/frame_0021.jpg +0 -0
  32. datasets/demos/human_movies_human_15.0/Base Color/frame_0022.jpg +0 -0
  33. datasets/demos/human_movies_human_15.0/Base Color/frame_0023.jpg +0 -0
  34. datasets/demos/human_movies_human_15.0/Base Color/frame_0024.jpg +0 -0
  35. datasets/demos/human_movies_human_15.0/Base Color/frame_0025.jpg +0 -0
  36. datasets/demos/human_movies_human_15.0/Base Color/frame_0026.jpg +0 -0
  37. datasets/demos/human_movies_human_15.0/Base Color/frame_0027.jpg +0 -0
  38. datasets/demos/human_movies_human_15.0/Base Color/frame_0028.jpg +0 -0
  39. datasets/demos/human_movies_human_15.0/Base Color/frame_0029.jpg +0 -0
  40. datasets/demos/human_movies_human_15.0/Base Color/frame_0030.jpg +0 -0
  41. datasets/demos/human_movies_human_15.0/Base Color/frame_0031.jpg +0 -0
  42. datasets/demos/human_movies_human_15.0/Base Color/frame_0032.jpg +0 -0
  43. datasets/demos/human_movies_human_15.0/Base Color/frame_0033.jpg +0 -0
  44. datasets/demos/human_movies_human_15.0/Base Color/frame_0034.jpg +0 -0
  45. datasets/demos/human_movies_human_15.0/Base Color/frame_0035.jpg +0 -0
  46. datasets/demos/human_movies_human_15.0/Base Color/frame_0036.jpg +0 -0
  47. datasets/demos/human_movies_human_15.0/Base Color/frame_0037.jpg +0 -0
  48. datasets/demos/human_movies_human_15.0/Base Color/frame_0038.jpg +0 -0
  49. datasets/demos/human_movies_human_15.0/Base Color/frame_0039.jpg +0 -0
  50. datasets/demos/human_movies_human_15.0/Base Color/frame_0040.jpg +0 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ assets/teaser_v2_00.jpg filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
ORIGINAL_README.md ADDED
@@ -0,0 +1,314 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Relit-LiVE: Relight Video by Jointly Learning Environment Video
2
+
3
+ <div align="center">
4
+ <a href='https://zhuxing0.github.io/' target='_blank'>Weiqing&nbsp;Xiao</a><sup>1,*</sup>&emsp;<a href='https://github.com/Luh1124' target='_blank'>Hong&nbsp;Li</a><sup>2,3,*</sup>&emsp;Xiuyu&nbsp;Yang<sup>4,*</sup>&emsp;<a href='https://github.com/houyuanchen111' target='_blank'>Houyuan&nbsp;Chen</a><sup>5</sup>&emsp;Wenyi&nbsp;Li<sup>6</sup>&emsp;Tianqi&nbsp;Liu<sup>7</sup>&emsp;Shaocong&nbsp;Xu<sup>2</sup>&emsp;<a href='https://hugoycj.github.io/' target='_blank'>Chongjie&nbsp;Ye</a><sup>8</sup>&emsp;<a href='https://sites.google.com/view/fromandto' target='_blank'>Hao&nbsp;Zhao</a><sup>4,2,†</sup>&emsp;Beibei&nbsp;Wang<sup>1,†</sup>
5
+ </div>
6
+
7
+ <div align="center">
8
+ <span style="white-space: nowrap;"><sup>1</sup>Nanjing&nbsp;University</span>&emsp;
9
+ <span style="white-space: nowrap;"><sup>2</sup>BAAI</span>&emsp;
10
+ <span style="white-space: nowrap;"><sup>3</sup>Beihang&nbsp;University</span>&emsp;
11
+ <span style="white-space: nowrap;"><sup>4</sup>Tsinghua&nbsp;University</span>&emsp;
12
+ <span style="white-space: nowrap;"><sup>5</sup>HKUST</span>&emsp;
13
+ <span style="white-space: nowrap;"><sup>6</sup>UCAS</span>&emsp;
14
+ <span style="white-space: nowrap;"><sup>7</sup>HUST</span>&emsp;
15
+ <span style="white-space: nowrap;"><sup>8</sup>CUHK-Shenzhen</span><br>
16
+ <span style="white-space: nowrap;"><sup>*</sup>Equal&nbsp;contribution.</span>&emsp;
17
+ <span style="white-space: nowrap;"><sup>†</sup>Corresponding&nbsp;authors.</span>
18
+ </div>
19
+
20
+ <p align="center">
21
+ <img src="assets/logos/nju-logo.png" height="40" alt="Nanjing University">&emsp;
22
+ <img src="assets/logos/baai-logo.png" height="40" alt="BAAI">&emsp;
23
+ <img src="assets/logos/buaa-logo.png" height="40" alt="Beihang University">&emsp;
24
+ <img src="assets/logos/tsinghua-logo.png" height="40" alt="Tsinghua University">
25
+ </p>
26
+
27
+ <p align="center">
28
+ <a href="https://arxiv.org/pdf/2605.06658">
29
+ <img src="https://img.shields.io/badge/arXiv-PDF-b31b1b" alt="Paper">
30
+ </a>
31
+ <a href="https://zhuxing0.github.io/projects/Relit-LiVE/">
32
+ <img src="https://raw.githubusercontent.com/prs-eth/Marigold/main/doc/badges/badge-website.svg" alt="Website">
33
+ </a>
34
+ <a href="https://huggingface.co/weiqingXiao/Relit-LiVE">
35
+ <img src="https://img.shields.io/badge/🤗%20Hugging%20Face%20-Model-green" alt="HuggingFace Model">
36
+ </a>
37
+ <a href="https://www.apache.org/licenses/LICENSE-2.0">
38
+ <img src="https://img.shields.io/badge/License-Apache--2.0-929292" alt="License">
39
+ </a>
40
+ </p>
41
+
42
+ This repo contains the official code of our paper: [Relit-LiVE: Relight Video by Jointly Learning Environment Video](https://arxiv.org/pdf/2605.06658).
43
+
44
+ ## 📊 Overview
45
+
46
+ <p align="center">
47
+ <img src="assets/teaser_v2_00.jpg" alt="Overview" width="100%"/>
48
+ </p>
49
+
50
+ We present **Relit-LiVE**, a novel video relighting framework that produces physically consistent and temporally stable results without needing prior knowledge of camera pose. This is achieved by jointly generating relighting videos and environment videos. Additionally, by integrating real-world lighting effects with intrinsic constraints, the relighting videos demonstrate remarkable physical plausibility, showcasing realistic reflections and shadows.
51
+
52
+ ## ✨ News
53
+
54
+ - May 8, 2026: Release project page and infer pipeline.
55
+
56
+ ## 📝 Check list
57
+
58
+ - [x] Release `the arxiv` and `project page`.
59
+ - [x] Release `inference code` and `model checkpoints`.
60
+ - [x] Release `gradio code` and `full inference pipeline (inverse-forward)`.
61
+ - [ ] Release `training code` and `data pipeline`.
62
+ - [ ] Release `training dataset`.
63
+
64
+ ---
65
+
66
+ ## 🛠️ Installation
67
+
68
+ ### Minimum requirements
69
+
70
+ - Python 3.10
71
+ - NVIDIA GPU, with at least 24 GB VRAM recommended
72
+ - CUDA 12.4 or a compatible version
73
+ - Model weights prepared under `checkpoints/` and `models/Wan-AI/Wan2.1-T2V-1.3B/`
74
+
75
+ Recommended environment:
76
+
77
+ - Ubuntu 20.04 or newer
78
+ - Single-GPU CUDA inference setup
79
+
80
+ ### Conda environment
81
+
82
+ ```bash
83
+ conda create -n diffsynth python=3.10
84
+ conda activate diffsynth
85
+ pip install -e .
86
+ pip install -U deepspeed
87
+ pip install transformers==4.50.0
88
+ pip install gradio==6.14.0
89
+ ```
90
+
91
+ ### Optional for full inference pipeline
92
+
93
+ The [cosmos-transfer1-diffusion-renderer](https://github.com/nv-tlabs/cosmos-transfer1-diffusion-renderer) repository is essential for *full pipeline inference*. Install the conda environment named **cosmos-predict1** following the instructions in its `README.md`.
94
+
95
+ ```bash
96
+ cd third_party
97
+ git clone https://github.com/nv-tlabs/cosmos-transfer1-diffusion-renderer.git
98
+ ...
99
+ ```
100
+
101
+ ## 📦 Checkpoints
102
+
103
+ Download the **Relit-LiVE** checkpoints from HuggingFace and place them under `checkpoints/`.
104
+
105
+ | Checkpoint | Resolution | Frames | Download |
106
+ | :--- | :---: | :---: | :---: |
107
+ | `model_frame25_480_832.ckpt` | 480 × 832 | 8n+1, n∈{0,1,2,3} → 1/9/17/25 | [🤗 Download](https://huggingface.co/weiqingXiao/Relit-LiVE) |
108
+ | `model_frame57_480_832.ckpt` | 480 × 832 | 8n+1, n∈{0,…,7} → 1/9/…/57 | [🤗 Download](https://huggingface.co/weiqingXiao/Relit-LiVE) |
109
+ | `model_frame1_1024_1472.ckpt` | 1024 × 1472 | 1 (image) | [🤗 Download](https://huggingface.co/weiqingXiao/Relit-LiVE) |
110
+
111
+ In addition, inference loads the Wan2.1 base model from `models/Wan-AI/Wan2.1-T2V-1.3B/`. Make sure all weights are in place before running inference.
112
+
113
+ **If you want to reproduce the MIT metrics reported in the paper, you should load the `model_frame57_480_832.ckpt` and perform single-frame inference directly on the test set.**
114
+
115
+ **(Optional for full inference pipeline)** Download the **cosmos-transfer1-diffusion-renderer** checkpoints from HuggingFace and place them under `third_party/cosmos-transfer1-diffusion-renderer/checkpoints/` following the instructions in its `README.md`.
116
+
117
+ ## 🚀 Inference
118
+
119
+ By default, generated results are written to `inference_output/`.
120
+
121
+ ### Basic 25-frame relighting
122
+
123
+ ```bash
124
+ python relit_inference.py \
125
+ --dataset_path datasets/demos \
126
+ --ckpt_path checkpoints/model_frame25_480_832.ckpt \
127
+ --output_dir inference_output \
128
+ --cfg_scale 1.0 \
129
+ --height 480 \
130
+ --width 832 \
131
+ --num_frames 25 \
132
+ --padding_resolution \
133
+ --use_ref_image \
134
+ --env_map_path datasets/envs/Pink_Sunrise \
135
+ --frame_interval 1 \
136
+ --num_inference_steps 50 \
137
+ --quality 10
138
+ ```
139
+
140
+ ### 25-frame rotating-light relighting
141
+
142
+ ```bash
143
+ python relit_inference.py \
144
+ --dataset_path datasets/demos \
145
+ --ckpt_path checkpoints/model_frame25_480_832.ckpt \
146
+ --output_dir inference_output \
147
+ --cfg_scale 1.0 \
148
+ --height 480 \
149
+ --width 832 \
150
+ --num_frames 25 \
151
+ --padding_resolution \
152
+ --use_ref_image \
153
+ --env_map_path datasets/envs/Pink_Sunrise \
154
+ --frame_interval 1 \
155
+ --num_inference_steps 50 \
156
+ --use_rotate_light \
157
+ --quality 10
158
+ ```
159
+
160
+ ### Fixed-frame relighting with width-axis light rotation
161
+
162
+ ```bash
163
+ python relit_inference.py \
164
+ --dataset_path datasets/demos \
165
+ --ckpt_path checkpoints/model_frame25_480_832.ckpt \
166
+ --output_dir inference_output \
167
+ --cfg_scale 1.0 \
168
+ --height 480 \
169
+ --width 832 \
170
+ --num_frames 25 \
171
+ --padding_resolution \
172
+ --use_ref_image \
173
+ --env_map_path datasets/envs/Pink_Sunrise \
174
+ --frame_interval 1 \
175
+ --num_inference_steps 50 \
176
+ --use_fixed_frame_and_w_rotate_light \
177
+ --quality 10
178
+ ```
179
+
180
+ ### Fixed-frame relighting with height-axis light rotation
181
+
182
+ ```bash
183
+ python relit_inference.py \
184
+ --dataset_path datasets/demos \
185
+ --ckpt_path checkpoints/model_frame25_480_832.ckpt \
186
+ --output_dir inference_output \
187
+ --cfg_scale 1.0 \
188
+ --height 480 \
189
+ --width 832 \
190
+ --num_frames 25 \
191
+ --padding_resolution \
192
+ --use_ref_image \
193
+ --env_map_path datasets/envs/Pink_Sunrise \
194
+ --frame_interval 1 \
195
+ --num_inference_steps 50 \
196
+ --use_fixed_frame_and_h_rotate_light \
197
+ --quality 10
198
+ ```
199
+
200
+ ### 57-frame video relighting
201
+
202
+ ```bash
203
+ python relit_inference.py \
204
+ --dataset_path datasets/demos \
205
+ --ckpt_path checkpoints/model_frame57_480_832.ckpt \
206
+ --output_dir inference_output \
207
+ --cfg_scale 1.0 \
208
+ --height 480 \
209
+ --width 832 \
210
+ --num_frames 57 \
211
+ --padding_resolution \
212
+ --use_ref_image \
213
+ --env_map_path datasets/envs/Pink_Sunrise \
214
+ --frame_interval 1 \
215
+ --num_inference_steps 50 \
216
+ --quality 10
217
+ ```
218
+
219
+ ### Single-frame high-resolution relighting
220
+
221
+ ```bash
222
+ python relit_inference.py \
223
+ --dataset_path datasets/demos \
224
+ --ckpt_path checkpoints/model_frame1_1024_1472.ckpt \
225
+ --output_dir inference_output \
226
+ --cfg_scale 1.0 \
227
+ --height 1024 \
228
+ --width 1472 \
229
+ --num_frames 1 \
230
+ --padding_resolution \
231
+ --use_ref_image \
232
+ --env_map_path datasets/envs/Pink_Sunrise \
233
+ --frame_interval 1 \
234
+ --num_inference_steps 50 \
235
+ --quality 10
236
+ ```
237
+
238
+ ## 📋 Argument reference
239
+
240
+ The following arguments are defined in `parse_args()` inside `relit_inference.py`.
241
+
242
+ | Argument | Type | Default | Description |
243
+ | --- | --- | --- | --- |
244
+ | `--dataset_path` | str | `./example_test_data` | Input dataset directory. The examples above use `datasets/demos`. |
245
+ | `--env_map_path` | str | `None` | External environment map directory. If not provided, the script reads lighting data from each sample. |
246
+ | `--use_ref_image` | flag | `False` | Enable the reference-image branch. |
247
+ | `--use_muti_ref_image` | flag | `False` | Enable multi-reference-image mode. The argument name follows the current code spelling. |
248
+ | `--ref_image_path_with_idddx` | str | `None` | Template path for external reference images. The script replaces `idddx` with the sample index. |
249
+ | `--full_resolution` | flag | `False` | Use the full-resolution input pipeline. |
250
+ | `--padding_resolution` | flag | `False` | Use a padding-based resize strategy to reduce aggressive cropping. |
251
+ | `--dataset_type` | str | `relit-live` | Dataset format. The default matches the Relit-LiVE directory structure in this repository. |
252
+ | `--drop_mr` | flag | `False` | Ignore metallic and roughness conditioning. |
253
+ | `--use_rotate_light` | flag | `False` | Enable dynamic light rotation mode. |
254
+ | `--use_fixed_frame_and_w_rotate_light` | flag | `False` | Keep the first frame fixed and rotate lighting along the environment-map width axis. |
255
+ | `--use_fixed_frame_and_h_rotate_light` | flag | `False` | Keep the first frame fixed and rotate lighting along the environment-map height axis. |
256
+ | `--h_rotate_light` | int | `0` | Apply vertical environment-map rotation to each frame, in degrees. |
257
+ | `--w_rotate_light` | int | `0` | Apply horizontal environment-map rotation to each frame, in pixels. |
258
+ | `--num_frames` | int | `81` | Number of output frames. When set to `1`, the script saves a png; otherwise it saves an mp4. |
259
+ | `--num_inference_steps` | int | `50` | Number of denoising inference steps. |
260
+ | `--frame_interval` | int | `1` | Sampling interval when reading the input video or image sequence. |
261
+ | `--height` | int | `480` | Output height. |
262
+ | `--width` | int | `832` | Output width. |
263
+ | `--ckpt_path` | str | `None` | Path to the checkpoint to load. |
264
+ | `--output_dir` | str | `./results` | Default output directory. |
265
+ | `--output_path` | str | `None` | Explicit output file path. Only `.mp4` and `.png` are supported. |
266
+ | `--dataloader_num_workers` | int | `1` | Number of DataLoader workers. |
267
+ | `--cfg_scale` | float | `5.0` | Classifier-free guidance scale. |
268
+ | `--wo_ref_weight` | float | `0.0` | Weight for the branch without reference-image conditioning. |
269
+ | `--quality` | int | `5` | Video quality value passed to `imageio` when saving mp4 files. |
270
+
271
+ ### Notes
272
+
273
+ - Output filenames automatically include parts of the checkpoint name, sequence name, resolution, reference-image mode, environment lighting information, inference steps, frame count, and `cfg_scale`.
274
+ - When `--num_frames 1` is used, the script writes a png. When `--num_frames > 1`, it writes an mp4.
275
+
276
+ ## 🚀 Full inference pipeline (gradio)
277
+
278
+ Please make sure you have the following items ready:
279
+
280
+ 1. conda environment named **diffsynth**.
281
+ 2. conda environment named **cosmos-predict1**.
282
+ 3. `./checkpoints/*.ckpt`.
283
+ 4. `./third_party/cosmos-transfer1-diffusion-renderer`.
284
+ 5. `./third_party/cosmos-transfer1-diffusion-renderer/checkpoints/Cosmos-Tokenize1-CV8x8x8-720p` and `./third_party/cosmos-transfer1-diffusion-renderer/checkpoints/Diffusion_Renderer_Inverse_Cosmos_7B`.
285
+
286
+ Then,
287
+
288
+ ```bash
289
+ conda activate diffsynth
290
+ python run_full_inference_gradio.py
291
+ ```
292
+
293
+ ## 📌 Future plans
294
+
295
+ This project will be continuously maintained. We welcome users to try it out and share their feedback (15770575681@163.com).
296
+
297
+ The current plan includes a model version **specifically designed for portraits** and another that is better suited for **handling motion** (including camera and scene dynamics).
298
+
299
+ ## 🤝 Citation
300
+
301
+ If you find this repository helpful, please consider citing our paper:
302
+
303
+ ```bibtex
304
+ @article{xiao2026relit,
305
+ title={Relit-LiVE: Relight Video by Jointly Learning Environment Video},
306
+ author={Xiao, Weiqing and Li, Hong and Yang, Xiuyu and Chen, Houyuan and Li, Wenyi and Liu, Tianqi and Xu, Shaocong and Ye, Chongjie and Zhao, Hao and Wang, Beibei},
307
+ journal={arXiv preprint arXiv:2605.06658},
308
+ year={2026}
309
+ }
310
+ ```
311
+
312
+ ## 📝 Acknowledgements
313
+
314
+ Code is built on [DiffSynth-Studio](https://github.com/modelscope/DiffSynth-Studio) and [diffusion-renderer](https://github.com/nv-tlabs/cosmos-transfer1-diffusion-renderer). Thanks all the authors for their excellent contributions!
assets/badge-website.svg ADDED
assets/logos/baai-logo.png ADDED
assets/logos/buaa-logo.png ADDED
assets/logos/nju-logo.png ADDED
assets/logos/tsinghua-logo.png ADDED
assets/teaser_v2_00.jpg ADDED

Git LFS Details

  • SHA256: f2c955a140c5956b73c79c3978a416bb80a0aeb7b4dc8579ad0435d3885ded0a
  • Pointer size: 131 Bytes
  • Size of remote file: 212 kB
datasets/demos/human_movies_human_15.0/Base Color/frame_0000.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0001.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0002.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0003.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0004.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0005.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0006.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0007.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0008.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0009.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0010.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0011.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0012.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0013.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0014.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0015.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0016.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0017.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0018.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0019.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0020.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0021.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0022.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0023.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0024.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0025.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0026.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0027.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0028.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0029.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0030.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0031.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0032.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0033.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0034.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0035.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0036.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0037.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0038.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0039.jpg ADDED
datasets/demos/human_movies_human_15.0/Base Color/frame_0040.jpg ADDED