UHD-LOL
收藏数据集概述
数据集名称
Ultra-High-Definition Low-Light Image Enhancement: A Benchmark and Transformer-Based Method (AAAI 2023 -- Oral)
数据集描述
该数据集用于超高清低光图像增强任务,包含两个子集:UHD-LOL4K 和 UHD-LOL8K。
UHD-LOL4K
- 包含 8,099 对 4K 低光/正常光图像。
- 其中 5,999 对用于训练,2,100 对用于测试。
UHD-LOL8K
- 包含 2,966 对 8K 低光/正常光图像。
- 其中 2,029 对用于训练,937 对用于测试。
数据集下载链接
- UHD-LOL4K: OneDrive | Baidu drive
- UHD-LOL8K: OneDrive | Baidu drive
预训练模型
- LLFormer 在 UHD-LOL4K 上训练的模型: Google drive | Baidu drive
- LLFormer 在 UHD-LOL8K 上训练的模型: Google drive | Baidu drive
使用方法
依赖安装
-
创建 Conda 环境 bash conda create -n LLFormer python=3.7 conda activate LLFormer conda install pytorch=1.8 torchvision=0.3 cudatoolkit=10.1 -c pytorch pip install matplotlib scikit-image opencv-python yacs joblib natsort h5py tqdm
-
克隆仓库 bash git clone https://github.com/TaoWangzj/LLFormer.git
-
安装 warmup scheduler bash cd LLFormer cd pytorch-gradual-warmup-lr; python setup.py install; cd ..
测试
- 修改数据集和预训练模型的路径 python
测试参数
input_dir # 数据路径 result_dir # 结果保存路径 weights # 预训练模型路径
-
测试 LOL 和 MIT-Adobe FiveK 数据集 bash python test.py --input_dir your_data_path --result_dir your_save_path --weights weight_path
-
测试 UHD-LOL 数据集 bash python test_UHD.py --input_dir your_data_path --result_dir your_save_path --weights weight_path
训练
-
下载 UHD-LOL 训练和测试数据
-
从 UHD-LOL 数据集的全分辨率训练图像生成图像块 bash python scripts/extract_subimages_UHD.py
-
训练 LLFormer bash python train.py -yml_path your_config_path
引用
如果 UHDLOL 基准和 LLFormer 对你的研究或工作有帮助,请考虑引用:
@inproceedings{wang2023ultra, title={Ultra-high-definition low-light image enhancement: A benchmark and transformer-based method}, author={Wang, Tao and Zhang, Kaihao and Shen, Tianrun and Luo, Wenhan and Stenger, Bjorn and Lu, Tong}, booktitle={Proceedings of the AAAI Conference on Artificial Intelligence}, volume={37}, number={3}, pages={2654--2662}, year={2023} }




