Home

Awesome

MAC-light-field-saliency-net

We release the code of Light Field Saliency Detection with Deep Convolutional Networks, built on the DeepLab v2-Caffe codebase.

Overall network

<div style="text-align:center"><img src ="https://github.com/YaMeiLiu/MAC-light-field-saliency-net/raw/master/framework.png" /></div> <font size=2> The proposed network architecture.

Architectures of three proposed MAC block variants

<div style="text-align:center"><img src ="https://github.com/YaMeiLiu/MAC-light-field-saliency-net/raw/master/MACblocks.png" /></div> <font size=2> The architectures of MAC block. (a) MAC block-9 × 9. (b) MAC block-3 × 3. (c) MAC block-StarShaped. The selected viewpoints are highlighted in red.

Installation

Python 2.7

Caffe

Matlab 2016b

Do the following two steps to make sure that .m files can be used in Python:

Note: matlabroot is the root directory of MATLAB in your system.

Data

Dataset:Lytro Illum

This project introduces a new light field dataset using a Lytro Illum camera. We collect 640 light fields with significant variations in terms of size, textureness, background clutter and illumination, etc. We generate micro-lens image arrays and central viewing images, and produce corresponding ground-truth maps. Please download them here or BaiduPan.

<div style="text-align:center"><img src ="https://github.com/YaMeiLiu/MAC-light-field-saliency-net/raw/master/dataset_construction.png" /></div> <font size=2> Flowchart of the dataset construction. (a) Lytro Illum camera. (b) SA image array generation. (c) ML image array generation. (d) The ground-truth map for the central viewing image.

Other datasets:

We also provide links to two other datasets for light field saliency detection.

|LFSD | |HFUT-Lytro|

Data pre-processing

Train

Pretrained models

To get the pretrained models on the Lytro Illum dataset, please download them form GoogleDrive or BaiduPan. Then, please put them under the corresponding models paths.

Test

Results

The computed saliency maps of three proposed models on the Lytro illum dataset are provided in the repo.

Visual comparison of our best MAC block variant (MAC block-9 × 9) and state-of-the-art methods on three datasets is shown in the following figure. (a) Central viewing/all-focus images. (b) Ground truth maps. (c) MAC block-9 × 9. (d) LFS [1]. (e) DILF [2]. (f) WSC [3]. (g) Multi-cue [4]. The first five samples are taken from the proposed Lytro Illum dataset, the middle three samples are taken from the HFUT-Lytro dataset, and the last two samples are taken from the LFSD dataset.

<div style="text-align:center"><img src ="https://github.com/YaMeiLiu/MAC-light-field-saliency-net/raw/master/result.png" /></div> <font size=2> Visual comparison of different MAC block variants and other state-of-the-art methods on three datasets.

References

  1. N. Li, J. Ye, Y. Ji, H. Ling, and J. Yu, “Saliency detection on light field,” in IEEE Conference on Computer Vision and Pattern Recognition, 2014.
  2. J. Zhang, M. Wang, J. Gao, Y. Wang, X. Zhang, and X. Wu, “Saliency detection with a deeper investigation of light field,” in International Joint Conference on Artificial Intelligence, 2015.
  3. N. Li, B. Sun, and J. Yu, “A weighted sparse coding framework for saliency detection,” in IEEE Conference on Computer Vision and Pattern Recognition, 2015.
  4. J. Zhang, M. Wang, L. Lin, X. Yang, J. Gao, and Y. Rui, “Saliency detection on light field: A multi-cue approach,” ACM Transactions on Multimedia Computing, Communications, and Applications, 2017.

TODO

Citation

If you find our paper and repo useful, please cite our paper. Thanks!

@article{Zhang2020,
    title={Light Field Saliency Detection with Deep Convolutional Networks},
    author={Zhang, Jun and Liu, Yamei and Zhang, Shengping, Poppe, Ronald and Wang, Meng},
    journal={IEEE Transactions on Image Processing},
    volume={29},
    pages={4421-4434},
    year={2020}
}  

Acknowledgement

Our light field saliency network is built on the DeepLab v2-Caffe, but it could be extended to other network architectures. We thank Liang-Chieh Chen for releasing DeepLabv2-Caffe codebase.

Contact

Jun Zhang, Yamei Liu

Questions can also be left as issues in the repository. We will be happy to answer them.