Skip to content

sidk2/lambda-cfm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CosmoFlow

This is the repository that goes along with the paper CosmoFlow: Scale-Aware Representation Learning for Cosmology with Flow Matching

We implement a flow-matching based model for representation learning of cold dark matter density fields.

Getting Started

Installation

  1. Clone the repository:
    git clone https://github.com/sidk2/cosmo-compression.git
    cd cosmo-compression
  2. Install dependencies:
    pip install .

Usage

  • Training: See src/cosmo_compression/train.py for training script.
  • Experiments: Explore the examples/notebooks/ directory for Jupyter notebooks demonstrating model usage, interpolation, and downstream tasks.
  • Pretrained Models: Pretrained checkpoints are available in the models/ directory.
  • Data: We include a subset of the 1P dataset from CAMELS to facilitate running the examples.

Example: Running a Notebook

Open a notebook in examples/notebooks/ and follow the instructions in the cells to reproduce experiments and visualizations.

Citation

If you use this codebase in your research, please cite the corresponding paper (citation to be added).

Contact

For questions or contributions, please open an issue or contact skannan@ucsb.edu.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages