edongdongchen / REI

Robust Equivariant Imaging (REI), CVPR'2022 Oral
84 stars 8 forks source link

Robust Equivariant Imaging (REI) in PyTorch

arXiv GitHub Stars

Robust Equivariant Imaging: a fully unsupervised framework for learning to image from noisy and partial measurements

Dongdong Chen, Julián Tachella, Mike E. Davies.

The University of Edinburgh, UK

In CVPR 2022 (oral)

Background

Deep networks provide state-of-the-art performance in multiple imaging inverse problems ranging from medical imaging to computational photography. However, most existing networks are trained with clean signals which are often hard or impossible to obtain. This work aims to solve the challenge: learn the reconstruction function from noisy and partial measurements alone. Please find our presentation video for a quick introduction.

Background: Equivariant Imaging (EI)

Figure 1: Equivariant imaging systems. If the set of signals is invariant to a certain set of transformations, the composition of imaging operator () with the reconstruction function () should be equivariant to these transformations.

Robust Equivariant Imaging (REI)

Figure 2: REI training strategy. represents the estimated image, is the transformation, while and represent and the estimate of from the (noisy) measurements respectively. The SURE loss aims to estimate the measurement consistency of clean measurement, REQ (robust equivariance) loss is the error (e.g. MSE) between and .

Figure 3: Motivation. The performance of EI degrades with increasing noise. From top to bottom: reconstructions of EI, supervised (Sup) baseline, and the proposed REI on 4× accelerated MRI with Gaussian noise level = 0.01, 0.1, 0.2. PSNR values are shown in the top right corner of the images

flexible flexible Figure 4: More results. From top to bottom: reconstruction of , EI, REI, Sup and the groundtruth on the non-linear CT (with MPG noise) and Inpainting (with Poisson noise) tasks, respectively.

Frequently Asked Questions

We collected some Frequently Asked Questions, please find the above Q & A.

Run the code

  1. Requirements: configure the environment by following: environment.yml to run Inpainting and CT experiments. To run MRI experiments, please install the 'fastmri' package by pip install fastmri.

  2. Find the implementation of Robust Equivariant Imaging (REI):

    • REI for the accelerated MRI task and the Inpainting task: rei_end2end.py
    • REI for the low-dose and sparse-view CT task: rei_end2end_ct.py
    • Find our implementation of SURE for Gaussian and Poisson noise models at: rei_end2end.py
    • Find our implementation of SURE for Mixed Poisson-Gaussian noise model at: rei_end2end_ct.py
  3. Download datasets from the below source and move them under the folders: ./dataset/mri, ./dataset/Urban100, and ./dataset/CT, repectively:

  4. Train: run the below scripts to train REI models:

    • run ./demo_scripts/demo_mri.py, ./demo_scripts/demo_inpainting.py, ./demo_scripts/demo_ct.py to train REI for MRI, Inpainting, and CT tasks, respectively.
    • or run train_bash.sh to train REI models on all tasks.
    bash train_bash.sh
  5. Test: run 'demo_test.py' to test the performance (PSNR) of a trained model on a specific task.

    python3 demo_test.py

    We also provide the trained models used in the paper which can be downloaded at Google Drive. Please put the downloaded folder 'ckp' in the root path.

  6. To solve a new inverse problem, one only needs to

    • step 1: implement their own forward model (physics of sensing model)
    • step 2: determine the transformation group
    • step 3: specify the path of new dataset

Citation

If you use this code for your research, please cite our papers.

    @inproceedings{chen2021equivariant,
        title     = {Equivariant Imaging: Learning Beyond the Range Space},
        author    = {Chen, Dongdong and Tachella, Juli{\'a}n and Davies, Mike E},
        booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
        month     = {October},
        year      = {2021},
        pages     = {4379-4388}}

    @inproceedings{chen2022robust,
        title     = {Robust Equivariant Imaging: a fully unsupervised framework for learning to image from noisy and partial measurements},
        author    = {Chen, Dongdong and Tachella, Juli{\'a}n and Davies, Mike E},
        booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
        year      = {2022}}