Coder Social home page Coder Social logo

dgsmp's Introduction

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: [email protected], [email protected]
Weisheng Dong, Xidian University, Email: [email protected]
Xin Yuan, Bell Labs, Email: [email protected]

dgsmp's People

Contributors

taohuang95 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.