Điểm qua lllyasviel/IC-Light: 8.6k sao trên GitHub, viết chủ yếu bằng Python. More relighting!
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
IC-Light is a project to manipulate the illumination of images.
The name "IC-Light" stands for "Imposing Consistent Light" (we will briefly describe this at the end of this page).
Currently, we release two types of models: text-conditioned relighting model and background-conditioned model. Both types take foreground images as inputs.
Note that "iclightai dot com" is a scam website. They have no relationship with us. Do not give scam websites money! This GitHub repo is the only official IC-Light.
News
Alternative model for stronger illumination modifications.
Some news about flux is here. (A fix update is added at Nov 25, more demos will be uploaded soon.)
Get Started
Below script will run the text-conditioned relighting model:
Note that the "gradio_demo.py" has an official huggingFace Space here.
Screenshot
Text-Conditioned Model
(Note that the "Lighting Preference" are just initial latents - eg., if the Lighting Preference is "Left" then initial latent is left white right black.)
Prompt: beautiful woman, detailed face, warm atmosphere, at home, bedroom
Lighting Preference: Left
Prompt: beautiful woman, detailed face, sunshine from window
Lighting Preference: Left
beautiful woman, detailed face, neon, Wong Kar-wai, warm
Prompt: dog, magic lit, sci-fi RGB glowing, studio lighting
Lighting Preference: Bottom
Prompt: mysteriou human, warm atmosphere, warm atmosphere, at home, bedroom
Lighting Preference: Right
Background-Conditioned Model
The background conditioned model does not require careful prompting. One can just use simple prompts like "handsome man, cinematic lighting".
A more structured visualization:
Imposing Consistent Light
In HDR space, illumination has a property that all light transports are independent.
As a result, the blending of appearances of different light sources is equivalent to the appearance with mixed light sources:
Using the above light stage as an example, the two images from the "appearance mixture" and "light source mixture" are consistent (mathematically equivalent in HDR space, ideally).
We imposed such consistency (using MLPs in latent space) when training the relighting models.
As a result, the model is able to produce highly consistent relight - so consistent that different relightings can even be merged as normal maps! Despite the fact that the models are latent diffusion.
From left to right are inputs, model outputs relighting, devided shadow image, and merged normal maps. Note that the model is not trained with any normal map data. This normal estimation comes from the consistency of relighting.
You can reproduce this experiment using this button (it is 4x slower because it relight image 4 times)
Below are bigger images (feel free to try yourself to get more results!)
For reference, geowizard (geowizard is a really great work!):
And, switchlight (switchlight is another great work!):
Model Notes
iclight_sd15_fc.safetensors - The default relighting model, conditioned on text and foreground. You can use initial latent to influence the relighting.
iclight_sd15_fcon.safetensors - Same as "iclight_sd15_fc.safetensors" but trained with offset noise. Note that the default "iclight_sd15_fc.safetensors" outperform this model slightly in a user study. And this is the reason why the default model is the model without offset noise.
iclight_sd15_fbc.safetensors - Relighting model conditioned with text, foreground, and background.
Also, note that the original BRIA RMBG 1.4 is for non-commercial use. If you use IC-Light in commercial projects, replace it with other background replacer like BiRefNet.
Cite
@inproceedings{
zhang2025scaling,
title={Scaling In-the-Wild Training for Diffusion-based Illumination Harmonization and Editing by Imposing Consistent Light Transport},
author={Lvmin Zhang and Anyi Rao and Maneesh Agrawala},
booktitle={The Thirteenth International Conference on Learning Representations},
year={2025},
url={https://openreview.net/forum?id=u1cQYxRI1H}
}
Related Work
Also read ...
Total Relighting: Learning to Relight Portraits for Background Replacement
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/lllyasviel/IC-Light là nguồn chính thức.
lllyasviel/IC-Light có phải mã nguồn mở không?
Có — lllyasviel/IC-Light phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/lllyasviel/IC-Light.
lllyasviel/IC-Light có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho lllyasviel/IC-Light. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
lllyasviel/IC-Light có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho lllyasviel/IC-Light. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
lllyasviel/IC-Light còn đang phát triển không?
Commit gần nhất trên lllyasviel/IC-Light là 1.7 năm trước (theo timestamp GitHub). Repo có 526 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
lllyasviel/IC-Light dùng license gì?
lllyasviel/IC-Light phát hành theo license Apache-2.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
Đọc đầy đủ README ở tab phía trên.
IC-Light có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về IC-Light.