Skip to content
Projets

À propos

Outils de dessin de l’éclairage pour les modèles de diffusion texte-image

Design et médias

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

LuminaBrush

Work in Progress (WIP): this page may be updated a lot recently.

LuminaBrush is a project to build an interactive tool to draw illumination effects on images.

The framework is a two-stage method: one stage to convert an image to a "uniformly-lit" appearance, and another stage to generate the illumination effect with user scribbles.

Notes

2025 May 01: The huggingface space in under maintenance now ...

Demos

LuminaBrush is currently based on Flux.

HF Demo: https://huggingface.co/spaces/lllyasviel/LuminaBrush

Examples with seed 12345:

image

image

image

image

image

(the above examples can be reproduced by clicking the HF demo page's examples)

(the HF demo page may have more examples)

Framework

image

LuminaBrush is a two-stage framework. The first stage (on the left) convert images to "uniformly-lit" appearances (eg., those lit by uniformly distributed white ambient light sources); the second stage (on the right) generate illumination effects for those "uniformly-lit" appearances, guided by user scribbles.

Decomposing the illumination drawing problem into two stages makes the learning easier and more straightforward - otherwise (eg., if only use one stage) one may need to consider external constraints/regulations (like light transport consistency, etc) to stabilize model behaviors.

We begin with collecting a relatively small set of images with relatively uniformly-lit appearances - for example like these:

image

(and then we also expand this set with generated images from a Flux LoRA trained on this set)

Using these "uniformly-lit" images as an intermediate representation has some advantages, like avoiding overly sharp mesh boundaries or overly flat surfaces from 3D albedo. And those images are somewhat detailed enough to handle skin texture details, hair, fur, etc..

We then synthesize random normals to relight those "uniformly-lit" images randomly to train a model that can extract "uniformly-lit" appearances from any input images.

After that, we extract "uniformly-lit" appearances from millions of high-quality in-the-wild images, to build paired data to train the final interactive illumination drawing model.

One obvious side-product of this method is an application to use the "uniformly-lit stage" independently to somewhat "delight" images - we also built an HF space for people who want to play with it:

https://huggingface.co/spaces/lllyasviel/lumina_brush_uniform_lit

image

image

image

image

image

(the HF demo has more examples)

bib

@Misc{luminabrush2024,
  author = {LuminaBrush Team},
  title  = {LuminaBrush: Illumination Drawing Tools for Text-to-Image Diffusion Models},
  year   = {2024},
}

Work in progress

more info will be added later ...

Explorer des projets similaires

Chargement…