Skip to main content

Galaxy2Galaxy

Project description

# Galaxy2Galaxy

Galaxy2Galaxy, or G2G for short, is a library of models, datasets, and utilities to build generative models for astronomical images, based on the Tensor2Tensor library. Similarly to T2T, the goal of this project is to accelerate research in machine learning models applied to astronomical image processing problems.

## Install

G2G can easily be installed using pip: ` $ pip install galaxy2galaxy `

Should the install fail because of the GalSim dependency, check the GalSim [install guide]( https://github.com/GalSim-developers/GalSim/blob/releases/2.1/INSTALL.md) to fix it.

## Usage

To generate the COSMOS 25.2 sample at native pixel scale and stamp size:

`bash $ g2g-datagen --problem=img2img_cosmos --data_dir=data/img2img_cosmos ` This uses GalSim to draw postage stamps and save them in TFRecord format which can then be used for training.

To train an autoencoder with this data: `bash $ g2g-trainer --data_dir=data/img2img_cosmos --output_dir=training/cosmos_ae   --problem=img2img_cosmos --model=continuous_autoencoder_basic  --train_steps=2000  --eval_steps=100 --hparams_set=continuous_autoencoder_basic `

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for galaxy2galaxy, version 0.0.1rc2
Filename, size File type Python version Upload date Hashes
Filename, size galaxy2galaxy-0.0.1rc2.tar.gz (527.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page