Skip to content

Weak lensing mapping of dark matter based on ML methods

License

Notifications You must be signed in to change notification settings

WenhanGuo/MIU2Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIU2Net

License: MIT

Weak Lensing Mass Inversion

MIU2Net stands for Mass Inversion U2Net. It uses deep learning to convert weak lensing shear ($\gamma$) maps to convergence ($\kappa$) maps, which trace the projected dark matter distribution.

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.

Installation

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 $\kappa$ map reconstructions alongside deep learning for comparison, or even use traditional methods during network training. Avaiilable reconstruction methods from cosmostat include:

To use these methods within MIU2Net, you should install Sparse2D developed by the CosmoStat Lab. This is not required by the deep learning framework.

MIU2Net train/test

To train a MIU2Net model:

cd ./miu2net/main
python train.py xxxxxxxxxx

Testing MIU2Net model:

cd ./miu2net/main
python pred.py xxxxxxxxxx

About

Weak lensing mapping of dark matter based on ML methods

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published