Loading…
Loading…
This repository hosts the pretrained models for Galaxy Image Simplification using Generative AI, a pipeline that converts complex galaxy images into simplified, skeletonized representations suitable for quantitative morphology analysis.
The pipeline combines:
These models were trained on images from the DESI Legacy Survey with manually annotated spiral arms.
| File name | Type | Description |
|---|---|---|
models/galaxy_classifier_resnet50.h5 |
Keras model | ResNet-based binary classifier: spiral vs. non-spiral galaxy |
models/galaxy_simplifier_cgan.h5 |
Keras model | Conditional GAN: galaxy RGB image ➜ initial arm-highlighted image |
models/postprocess_cgan.h5 |
Keras model | Conditional GAN: initial mask ➜ refined, smooth/connected mask |
predict.py |
Python script | Full inference pipeline (classification ➜ simplifier cGAN ➜ post-cGAN) |
graphical_abstract.jpg |
Image | Graphical abstract / high-level overview of the Galaxy Simplifier pipeline |
requirements.txt |
Text file | Python dependencies needed for running inference |
README.md |
Markdown | Model card and usage instructions (this file) |
Given an optical galaxy image (RGB, 256×256):
ResNet classifier (galaxy_classifier_resnet50.h5)
0 – non-spiral / other 1 – spiralp_spiral > 0.65) before running the GAN pipeline.Skeletonization cGAN (galaxy_simplifier_cgan.h5)
[-1, 1]).Post-processing cGAN (postprocess_cgan.h5)
You can either:
inference.py.If you use this code, models, or catalog in your research, please cite:
@article{erukude2025galaxy,
title={Galaxy image simplification using Generative AI},
author={Erukude, Sai Teja and Shamir, Lior},
journal={Astronomy and Computing},
pages={100990},
year={2025},
publisher={Elsevier}
}