deepCR: Deep Learning Based Cosmic Ray Removal for Astronomical Images

Build Status codecov https://readthedocs.org/projects/deepcr/badge/?version=latest
target:https://deepcr.readthedocs.io/en/latest/?badge=latest
alt:Documentation Status

Identify and remove cosmic rays from astronomical images using trained convolutional neural networks.

https://raw.githubusercontent.com/profjsb/deepCR/master/imgs/postage-sm.jpg

Installation

pip install deepCR

Or you can install from source:

git clone https://github.com/profjsb/deepCR.git
cd deepCR/
pip install .

Currently available models

from deepCR import deepCR
decam_model = deepCR(mask='decam', device='CPU')
acswfc_model = deepCR(mask='ACS-WFC-F606W-2-32', inpaint='ACS-WFC-F606W-2-32', device='GPU')

```

For detailed descriptions and requirements of currently available models, please visit the model_zoo page below.

If you run into any issues, please don’t hesitate to open an issue on GitHub.