Git Product home page Git Product logo

polish-bnn's Introduction

polish-pub

The POLISH radio interferometric image reconstruction algorithm.

https://arxiv.org/abs/2111.03249

The code in this repository generates high resolution (HR) simulated images of the radio sky as well as the convolved, low resolution (LR) dirty images produced by radio interferometers. It can then train a POLISH neural network on these image pairs to make a learning-based, feed forward imaging model for super-resolved radio images.

The super-resolution neural network and the code to train it comes from the WDSR implementation found here:

https://github.com/krasserm/super-resolution

using POLISH

Start by constructing a training/validation dataset. This will consist of a set of image pairs (true sky / dirty image) such that POLISH can learn deconvolution. You will require a PSF for the interferometer whose data you wish to deconvolve. This will produce 800 training image pairs, 100 validation image pairs using a forward-modeled dsa-2000 PSF. The radio sky simulation assumes the approximate senstivity of DSA-2000, i.e. SEFD=2.5 Jy. By default, these images will be 2048x2048 (true sky, high res, 0.25'' pixels) and 512x512 (dirty image, low res, 1'' pixels), but these parameters can be changed with command line arguments.

python make_img_pairs.py -o dsa-example -k psf/dsa-2000-fullband-psf.fits -s 512

The data will be stored in various subdirectories of dsa-example, which can be fed directly to the POLISH trainer. To train on these data simply run

python train_model.py dsa-example -f dsa-example-model.h5 

Now that we have a POLISH model, we can apply it to the validation data, or any dirty image, for that matter.

python reconstruct.py ./dsa-examplex/POLISH_valid_LR_bicubic/X4/0104x4.png ./dsa-example-model.h5 -p -f ./dsa-examplex/POLISH_valid_HR/0104.png

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.