Run this model with HF Jobs
Run fal/control-light on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/fal/control-light. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/fal/control-light on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use fal/control-light with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use fal/control-light with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("fal/control-light", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Original Repository: ControlLight/ControlLight
ControlLight is presented in the paper ControlLight: Towards Controllable, Consistent, and Generalizable Low-Light Enhancement.
ControlLight is a controllable low-light enhancement model built on top of FLUX.2 [klein] 9B. It is trained as a LoRA for continuous illumination enhancement, enabling users to adjust enhancement strength with a controllable parameter alpha. The model is designed to enhance low-light images while preserving the original scene structure, visual content, and fine-grained details.
π₯π₯π₯ News!!
- May 2026: π We release ControlLight, its model weights, inference and training code.
- May 2026: π We release Light100K, a continuous low-light enhancement dataset for controllable illumination learning.
β‘οΈ Model Usage
Installation
This project currently relies on the patched local diffusers/ checkout from the ControlLight repository.
git clone https://github.com/yfyang007/ControlLight.git
cd ControlLight
conda create -n controlight python=3.12 -y
conda activate controlight
python -m pip install --upgrade pip
python -m pip install -e diffusers
python -m pip install -r requirements.txt
python -m pip install -e .
You can verify the environment with:
bash scripts/predict.sh --help
bash scripts/demo.sh --help
bash -lc 'source scripts/project_env.sh; python run.py --help >/dev/null'
Inference with ControlLight
bash scripts/predict.sh predict-image \
--input /path/to/input.jpg \
--output /path/to/output.png \
--model-path /path/to/FLUX.2-klein-base-9B \
--lora-path /path/to/controllight.safetensors \
--alpha 0.50 \
--num-inference-steps 20 \
--guidance-scale 1.0 \
--seed 42 \
--device cuda \
--torch-dtype bfloat16
CLI Quick Start
bash scripts/predict.sh predict-four \
--input /path/to/images \
--output /path/to/out_four \
--model-path /path/to/FLUX.2-klein-base-9B \
--lora-path /path/to/controllight.safetensors \
--num-inference-steps 20 \
--seed 42 \
--device cuda \
--torch-dtype bfloat16
Recommended Inference Config
- Device:
cuda - Torch dtype:
bfloat16 - Inference steps:
20 - Guidance scale:
1.0 - Recommended seed:
42 - Enhancement strength:
alphain[0, 1], where larger values produce stronger low-light enhancement.
Example Settings
| Task | Setting |
|---|---|
| Mild Low-light Enhancement | alpha=0.25 |
| Medium Low-light Enhancement | alpha=0.50 |
| Strong Low-light Enhancement | alpha=0.75 |
| Full Low-light Enhancement | alpha=1.00 |
| Custom Enhancement Sweep | --alphas 0.20,0.40,0.60,0.80 |
Additional Resources
- Project Page: ControlLight Project Page
- GitHub Repository: yfyang007/ControlLight
- Model: ControlLight/ControlLight
- Dataset: ControlLight/Light100K
- Base Model: black-forest-labs/FLUX.2-klein-base-9B
License and Disclaimer
The code of ControlLight is intended to be released under the Apache License 2.0.
ControlLight is built on top of FLUX.2 [klein] 9B and uses third-party components, datasets, and model assets. All underlying base models and third-party components remain governed by their original licenses and terms. Users must comply with all applicable upstream licenses when using this project.
Citation
If you find ControlLight useful in your research, please star and cite:
@misc{yang2026controllightcontrollableconsistentgeneralizable,
title={ControlLight: Towards Controllable, Consistent, and Generalizable Low-Light Enhancement},
author={Yufeng Yang and Jianzhuang Liu and Jisheng Chu and Yuqi Peng and Xianfang Zeng and Jiancheng Huang and Shifeng Chen},
year={2026},
eprint={2605.25569},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2605.25569},
}
- Downloads last month
- 226
Model tree for fal/control-light
Base model
black-forest-labs/FLUX.2-klein-base-9B