Skip to content

A Regularized Conditional GAN for Posterior Sampling in Image Recovery Problems

Notifications You must be signed in to change notification settings

astro-informatics/rcGAN

This branch is 483 commits ahead of, 1 commit behind matt-bendel/rcGAN:master.

Folders and files

NameName
Last commit message
Last commit date
May 25, 2023
Dec 20, 2024
Dec 19, 2024
Jan 15, 2025
Dec 19, 2024
Nov 13, 2023
Mar 18, 2024
Dec 3, 2024
Dec 20, 2024
Oct 10, 2024
Dec 3, 2024
Oct 27, 2023
Dec 19, 2024
Dec 18, 2024
Oct 27, 2023
Dec 3, 2024
May 26, 2023
Nov 9, 2023
May 26, 2023
May 24, 2023
Dec 3, 2024

Repository files navigation

Generative modelling for mass-mapping with fast uncertainty quantification [arXiv]

MMGAN is a novel mass-mapping method based on the regularised conditional generative adversarial network (GAN) framework by Bendel et al.. Designed to quickly generate approximate posterior samples of the convergence field from shear data, MMGAN offers a fully data-driven approach to mass-mapping. These posterior samples allow for the creation of detailed convergence map reconstructions with associated uncertainty maps, making MMGAN a cutting-edge tool for cosmological analysis.

MMGAN COSMOS convergence map reconstruction

Installation

After cloning the repository, if in a computing cluster, first run:

source /share/apps/anaconda/3-2022.05/etc/profile.d/conda.sh

To install the conda dependencies setting the correct channels:

conda create --name cGAN --file conda_requirements.txt --channel pytorch --channel nvidia --channel conda-forge --channel defaults

Then activate the conda environment and install the pip requirements:

conda activate cGAN
pip install -r pypi_requirements.txt

Reproducing our Results

See docs/mass_mapping.md for detailed instructions on how to setup and reproduce the results from our paper on MMGAN.

Alternatively, we have provided a [zenodo file]https://zenodo.org/records/14226221 with the weights of our trained model, as well as a number of simulations.

Questions and Concerns

If you have any questions, or run into any issues, don't hesitate to reach out at jessica.whitney.22@ucl.ac.uk

References

This repository was forked from rcGAN by Bendel et al., with significant changes and modification made by Whitney et al.

Citation

If you find this code helpful, please cite our paper:

@journal{2024arxiv,
  author = {Whitney, Jessica and Liaudat, Tobías and Price, Matthew and Mars, Matthijs and McEwen, Jason},
  title = {Generative modelling for mass-mapping with fast uncertainty quantification},
  year = {2024},
  journal={arXiv:2410.24197}
}

About

A Regularized Conditional GAN for Posterior Sampling in Image Recovery Problems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 98.6%
  • Python 1.4%