Harmonizer: Learning to Perform White-Box Image and Video Harmonization (ECCV 2022)
Paper | Demo | Code | License | Citation | Contact
Harmonizer Result Video | Enhancer Result Video
In our demos, the Harmonizer model is trained on the iHarmony4 dataset, while the Enhancer model is trained on the FiveK + HDRPlus datasets.
Try our online demos for fun without code!
Image Harmonization | Image Enhancement |
---|---|
Online Demo | Online Demo |
We provide offline demos for image/video harmonization/enhancement.
Image Harmonization | Video Harmonization | Image Enhancement | Video Enhancement |
---|---|---|---|
Offline Demo | Offline Demo | Offline Demo | Offline Demo |
We provide PyTorch validation code to reproduce the iHarmony4 results reported in our paper, please:
-
Download the Harmonizer model pre-trained on the iHarmony4 dataset from this link and put it in the folder
./pretrained
. -
Download the four subsets of iHarmony4 from this repository and put them in the folder
./dataset/harmonization/iHarmony4
. -
Install python requirements. In the root path of this repository, run:
pip install -r src/requirements.txt
-
For validation, in the root path of this repository, run:
python -m src.val_harmonizer \ --pretrained ./pretrained/harmonizer \ --datasets HCOCO HFlickr HAdobe5k Hday2night \ --metric-size 256
- You can change
--datasets
to validate a specific subset. - You can remove
--metric-size
to calculate the metrics without resizing the outputs. - The metric values may slightly different from our paper due to the dependency versions.
- You can change
This project is released under the Creative Commons Attribution NonCommercial ShareAlike 4.0 license.
If this work helps your research, please consider to cite:
@InProceedings{Harmonizer,
author = {Zhanghan Ke and Chunyi Sun and Lei Zhu and Ke Xu and Rynson W.H. Lau},
title = {Harmonizer: Learning to Perform White-Box Image and Video Harmonization},
booktitle = {European Conference on Computer Vision (ECCV)},
year = {2022},
}
This repository is maintained by Zhanghan Ke (@ZHKKKe).
For questions, please contact [email protected]
.