TaoHuang95 / DGSMP

PyTorch code for CVPR2021 paper "Deep Gaussian Scale Mixture Prior for Spectral Compressive Imaging"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deep GSM prior for CASSI

This repository contains the Pytorch codes for paper Deep Gaussian Scale Mixture Prior for Spectral Compressive Imaging (CVPR (2021)) by Tao Huang, Weisheng Dong, Xin Yuan.
[pdf] [arXiv] [Project] [supp]

Contents

  1. Overview
  2. Architecture
  3. Usage
  4. Acknowledgements
  5. References
  6. Citation
  7. Contact

Overview

We have proposed an interpretable hyperspectral image reconstruction method for coded aperture snapshot spectral imaging. Different from existing works, our network was inspired by the Gaussian scale mixture (GSM) prior. Specifically, the desired hyperspectral images were characterized by the GSM models and then the reconstruction problem was formulated as a MAP estimation problem. Instead of using a manually designed prior, we have proposed to learn the scale prior of GSM by a DCNN. Furthermore, motivated by the auto-regressive model, the means of the GSM models have been estimated as a weighted average of the spatial-spectral neighboring pixels, and these filter coefficients were estimated by a DCNN as well aiming to learn sufficient spatial-spectral correlations of HSIs. Extensive experimental results on both synthetic and real datasets demonstrate that the proposed method outperforms existing state-of-the-art algorithms.

Fig. 1 A single shot measurement captured by [1] and 28 reconstructed spectral channels using our proposed method.

Architecture

Fig. 2 Architecture of the proposed network for hyperspectral image reconstruction. The architectures of (a) the overall network, (b) the measurement matrix, (c) the transposed version of the measurement matrix, (d) the weight generator, and (e) the filter generator.

Usage

Download the DGSMP repository

  1. Requirements are Python 3 and PyTorch 1.2.0.
  2. Download this repository via git
git clone https://github.com/TaoHuang95/DGSMP

or download the zip file manually.

Download the training data

  1. CAVE:28 channels (https://pan.baidu.com/s/1ue26weBAbn61a7hyT9CDkg) PW:ixoe
  2. KAIST:28 channels (https://pan.baidu.com/s/1LfPqGe0R_tuQjCXC_fALZA) PW:5mmn

Testing

  1. Testing on simulation data
    Run Simulation/Test.py to reconstruct 10 synthetic datasets (Ziyi Meng). The results will be saved in 'Simulation/Results/' in the MatFile format.
  2. Testing on real data
    Run Real/Test.py to reconstruct 5 real datasets (Ziyi Meng). The results will be saved in 'Real/Results/' in the MatFile format.

Training

  1. Training simulation model
    1. Put hyperspectral datasets (Ground truth) into corrsponding path, i.e., 'Simulation/Data/Training_data/'.
    2. Run Simulation/Train.py.
  2. Training real data model
    1. Put hyperspectral datasets (Ground truth) into corrsponding path, i.e., 'Real/Data/Training_data/'.
    2. Run Real/Train.py.

Acknowledgements

We thank the author of TSA-Net[1] (Ziyi Meng) for providing simulation data and real data.

References

[1] Ziyi Meng, Jiawei Ma, and Xin Yuan. End-to-end low cost compressive spectral imaging with spatial-spectral self-attention. In Proceedings of the European Conference on Computer Vision (ECCV), August 2020.

Citation

If you find our work useful for your research, please consider citing the following papers :)

@InProceedings{Huang_2021_CVPR,
    author    = {Huang, Tao and Dong, Weisheng and Yuan, Xin and Wu, Jinjian and Shi, Guangming},
    title     = {Deep Gaussian Scale Mixture Prior for Spectral Compressive Imaging},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month     = {June},
    year      = {2021},
    pages     = {16216-16225}
}

Contact

Tao Huang, Xidian University, Email: thuang_666@stu.xidian.edu.cn, thuang951223@163.com
Weisheng Dong, Xidian University, Email: wsdong@mail.xidian.edu.cn
Xin Yuan, Bell Labs, Email: xin_x.yuan@nokia-bell-labs.com

About

PyTorch code for CVPR2021 paper "Deep Gaussian Scale Mixture Prior for Spectral Compressive Imaging"


Languages

Language:Python 77.4%Language:MATLAB 22.6%