deepCR: Deep Learning Based Cosmic Ray Removal for Astronomical Images

Build Status codecov
alt:Documentation Status

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


pip install deepCR

Or you can install from source:

git clone
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.