Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Galaxy2Galaxy Build Status Documentation Status Join the chat at https://gitter.im/ml4astro/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

We recommend users create a conda environment before installing galaxy2galaxy. This makes installing tensorflow and galsim very easy:

$ conda install tensorflow-gpu==1.15
$ conda install -c conda-forge galsim

G2G can then easily be installed using pip inside the environment:

$ pip install git+https://github.com/ml4astro/pixel-cnn.git
$ pip install galaxy2galaxy

Usage

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

$ 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. This assumes that you have downloaded the GalSim COSMOS sample, if that's not the case, you can dowload it with: galsim_download_cosmos -s 25.2

To train an autoencoder with this data:

$ 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

Metadata

Release files for galaxy2galaxy 0.0.1rc5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for galaxy2galaxy 0.0.1rc5
File Size Uploaded Provenance
galaxy2galaxy-0.0.1rc5.tar.gz 1.6 MB Without provenance Details

Release files / galaxy2galaxy-0.0.1rc5.tar.gz

Download URL galaxy2galaxy-0.0.1rc5.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
a0923e686bb772854fb5dc416c5fc4d9918e4aac03518eb8903bcb10d5439cdb
BLAKE2b-256 checksum
How to use checksums
dfaa8f53894ea9ee84e425f5795f0a5eb19d2231ce4c28a0f35d1d8507957237
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.1 CPython/3.7.1

Security for galaxy2galaxy 0.0.1rc5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page