MIU2Net stands for Mass Inversion U2Net. It uses deep learning to convert weak lensing shear (
We develop MIU2Net as a deep learning framework for weak lensing mass inversion. MIU2Net includes observations effects like shape noise, reduced shear, and data masks in the training.
The main MIU2Net package depends on the following packages:
- pytorch
- numpy
- scipy
- astropy
Prior to installing MIU2Net, make sure to install PyTorch according to your OS and compute platform. We recommend installing pytorch 1.12.0
and torchvision 0.13.0
to avoid unexpected dependency errors. The main MIU2Net package includes the full training and testing code for deep learning.
To reconstruct convergence maps using traditional (non- deep learning) methods, we have modified the cosmostat package developed at the CosmoStat Lab in CEA Paris-Saclay, so that we can use traditional
- Kaiser-Squires (KS) deconvolution
- Wiener Filtering (WF)
- sparse reconstruction ((Lanusse et al. 2016), Glimpse)
- MCALens Starck et al.
To use these methods within MIU2Net, you should install Sparse2D developed by the CosmoStat Lab. This is not required by the deep learning framework.
To train a MIU2Net model:
cd ./miu2net/main
python train.py xxxxxxxxxx
Testing MIU2Net model:
cd ./miu2net/main
python pred.py xxxxxxxxxx