# lllyasviel/ic-light

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/lllyasviel-ic-light).**

8,445 stars · 524 forks · Python · Apache-2.0

## Links

- GitHub: https://github.com/lllyasviel/IC-Light
- awesome-repositories: https://awesome-repositories.com/repository/lllyasviel-ic-light.md

## Description

IC-Light is a diffusion-based image editor and generative tool designed for controlling the illumination of foreground subjects. It functions as an image relighting system that uses latent diffusion models to modify lighting effects on isolated subjects.

The project provides two primary methods for lighting control: text-based relighting, which uses descriptive prompts and lighting directions, and background-based relighting, which conditions the foreground lighting to match the visual properties of a provided background image.

Beyond illumination, the system includes a surface normal estimator that derives geometric surface information by analyzing lighting variations across multiple processed images. These capabilities support the production of visual effects and consistent lighting for digital art and composites.

## Tags

### Artificial Intelligence & ML

- [Image Diffusion Models](https://awesome-repositories.com/f/artificial-intelligence-ml/computer-vision-systems/image-diffusion-models.md) — Employs image diffusion models to synthesize lighting and color details while maintaining the original image structure.
- [AI Image Relighting](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-image-relighting.md) — Changes the lighting of a foreground subject using text prompts or a background image.
- [Generative Lighting Control](https://awesome-repositories.com/f/artificial-intelligence-ml/computer-vision-systems/computer-vision/image-augmentation/lighting-adjusters/generative-lighting-control.md) — Implements generative lighting control to adjust atmospheric conditions and illumination on isolated image subjects.
- [Relighting Models](https://awesome-repositories.com/f/artificial-intelligence-ml/image-generation-models/conditional-image-generation/relighting-models.md) — Generates modified illumination for foreground subjects using text prompts or background image conditioning.
- [Reference-Conditioned Generation](https://awesome-repositories.com/f/artificial-intelligence-ml/image-generation/reference-conditioned-generation.md) — Provides reference-conditioned generation to match foreground lighting with the visual properties of a background image.
- [Diffusion-Based Editors](https://awesome-repositories.com/f/artificial-intelligence-ml/video-generation/prompt-based-video-editors/diffusion-based-editors.md) — Provides a diffusion-based editor for creating consistent lighting effects on isolated subjects.
- [Cross-Attention Mechanisms](https://awesome-repositories.com/f/artificial-intelligence-ml/generative-ai-resources/diffusion-visual-models/generative-ai-architectures/cross-attention-mechanisms.md) — Uses cross-attention mechanisms to map textual lighting descriptions to specific spatial regions of the foreground subject.
- [Latent Space Manipulations](https://awesome-repositories.com/f/artificial-intelligence-ml/generative-ai-resources/diffusion-visual-models/generative-ai-models/latent-space-generative-models/latent-space-projections/latent-space-encoders/latent-space-manipulations.md) — Modifies compressed latent representations of images to change illumination before decoding them back into pixels.
- [Iterative Denoising Pipelines](https://awesome-repositories.com/f/artificial-intelligence-ml/neural-network-architectures/u-net-architectures/iterative-denoising-pipelines.md) — Implements an iterative denoising pipeline to refine relit images toward a consistent lighting state.

### Graphics & Multimedia

- [Image Relighting](https://awesome-repositories.com/f/graphics-multimedia/image-relighting.md) — Imposes consistent lighting on foreground subjects by analyzing the visual properties of a provided background image. ([source](https://github.com/lllyasviel/ic-light#readme))
- [Static Image Relighting](https://awesome-repositories.com/f/graphics-multimedia/video-subject-relighting/static-image-relighting.md) — Modifies foreground illumination using text prompts and lighting directions to create consistent lighting effects. ([source](https://github.com/lllyasviel/ic-light#readme))
- [AI Lighting Compositing](https://awesome-repositories.com/f/graphics-multimedia/visual-effects-composition/ai-lighting-compositing.md) — Creates consistent lighting effects on image subjects for use in digital art or composite photography.

### Part of an Awesome List

- [Surface Normal Estimation](https://awesome-repositories.com/f/awesome-lists/ai/vanishing-point-detection/surface-normal-estimation.md) — Estimates surface normals by analyzing lighting variations across multiple relighting outputs to determine depth and orientation. ([source](https://github.com/lllyasviel/ic-light#readme))
