DEV Community

AI-KSK
AI-KSK

Posted on

AnyLight: precise relighting as a technical control problem

Relighting usually means "describe the light and hope". This episode is about treating it as a control problem: AnyLight is a LoRA that takes a light direction and applies it, and the workflow exists to make that reproducible.

Watch the episode: https://youtu.be/zeD5FLeon9U

Why a LoRA instead of a prompt

Prompt-based lighting is ambiguous. "Rim light from the left" can produce anything from a soft glow to a hard edge. A LoRA trained on light direction gives you a control that moves in one axis, so a small change in the parameter is a small change in the image.

How the workflow is set up

  1. Source image in - one subject, clean edges.
  2. The AnyLight LoRA applies directional light as a controlled parameter rather than a sentence.
  3. The render re-lights without rebuilding the subject.

What it is good at

  • Product shots that need a consistent light across a set.
  • Portraits where you want to move the key light to fix a shadow.
  • Sequences where the light must change a little between frames.

Honest limits

  • This is a fairly technical workflow. It assumes you can read the node graph and tune a strength, not just type a prompt.
  • A LoRA that controls light also controls how light interacts with material - skin and metal respond differently, and one setting will not flatter both.
  • No model weights or LoRA files are bundled with this article.

What makes it worth the effort

If you produce more than a handful of images with the same lighting setup, a controllable light parameter beats re-typing prompt variations every time. That is the trade the workflow is making.

Top comments (0)