This repository is the official implementation of ICASSP 2024 paper:Highlight removal network based on an improved dichromatic reflection model.
@INPROCEEDINGS{10447916, author={Hu, Kun and Huang, Zhaoyangfan and Wang, Xingjun}, booktitle={ICASSP 2024 - 2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)}, title={Highlight Removal Network Based on an Improved Dichromatic Reflection Model}, year={2024}, volume={}, number={}, pages={2645-2649}, keywords={Measurement;Adaptation models;Codes;Adaptive systems;Color;Signal processing;Visual effects;Specular highlight removal;Dichromatic reflection model;Coarse-to-refine network;Highlight aware}, doi={10.1109/ICASSP48485.2024.10447916}}
State-of-the-art highlight removal methods still face the problems of color inconsistencies between highlight region and background, and content unreality in highlight areas. To solve these two problems, we propose a novel adaptive highlight-aware network for specular highlight removal based on an improved dichromatic reflection model. For color inconsistencies, we propose an adaptive highlight-aware (AHA) module to perceive the complete highlight information including the location and the scale of the specular highlight. Therefore, the AHA module enables the network to adaptively remove highlights while keeping non-highlight areas intact. For content unreality, we design a novel coarse-refine network to ensure that the content of the highlighted area is realistic after highlight removal. Extensive experimental results indicate that our methods can obtain excel- lent visual effects of highlight removal and achieve SOTA results on two datasets in several quantitative evaluation metrics. Our code is available at here.
To install requirements:
pip install -r requirements.txt
You can download datasets Specular highlight image quadruples (SHIQ) here. SHIQ_tiny is a small part of SHIQ that facilitates direct testing of the code that trains the model. If you want to get the full model you need to download all of SHIQ for training.
To train the model(s) in the paper, run this command:
python train.py --runs_name <> --dataroot <> --train_dir <> --test_dir <>
Example:
python train.py --runs_name './myruns' --dataroot 'SHIQ_tiny' --train_dir 'train' --test_dir 'test'
To evaluate my model on your datasets, run:
python infer.py --input_dir <> --output_dir <> -- infer_model <>
Example:
python infer.py --input_dir './test/inp/' --output_dir './test/out_new/' --infer_model './savedmodel/Nature.mdl'
You can download pre-trained models here code.
This code is not allowed for any commercial purpose without written concent from the authors.