Code Monkey home page Code Monkey logo

astroimagereconscnn's Introduction

AstroImageReconsCNN

Astronomical Image Reconstruction with Convolutional Neural Networks

imgrecons

This repository contains the code used for the numerical experiments of the foillowing paper:

R. Flamary, "Astronomical image reconstruction with convolutional neural networks", European Conference on Signal Processing (EUSIPCO), 2017.

The code is under MIT Licence but please refer to and cite the above paper if you use it for academic purposes.

Dependencies

In order to run, the code requires the following Python modules:

  • Numpy/Scipy and Matplotlib
  • Scikit-image
  • Keras and Theano
  • Astropy

You can also use the Tensorflow backend in keras but I used the theano backend to save the models provided int his repository.

If you have not already installed them you can install the dependencies with PIP usng the following command

$ pip install numpy scipy matplotlib keras theano astropy

Plot results and run simulations

Reproduce all plots

Numerical experiments results are available in the res directory to reproduce all Figures and Table in the paper.

  • visu_images_all.py: Plot Figure 2 in the paper (show dataset).
  • visu_images_rec.py: Plot Figure 3 in the paper (reconstruction on M51a).
  • visu_filters_deconv.py: Plot Figure 4 in the paper (intermediate CNN filters).
  • visu_comp_perfs.py : Print Table 1.

Reproduce all results (numerical computation)

Numerical experiments can be reproduced in 2 steps:

  • Learn all the the CNN (saves models in models/).
  • Run all reconstruction algorithms (saves results in res/ in matlab format).

To do that you should run the following scripts:

  • run_cnn_all.py : Run the training for all images with the CNN.
  • run__linearcnn_all.py : Run the training for all images with the CNN with one linear layer.
  • run_deconv_all.py : Run the deconvolution for the method given in the first parameter of the command line (from 'none', 'wiener', 'rl', 'vc_tv', 'cnn', 'cnn0').

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.