Downloads · 30 days
2.4K
24% of all-time downloads
erukude/galaxy-simplifier
galaxy-simplifier is a image-to-image model from erukude. Use it when you need one image transformed into another. It is set up for keras. The card lists the license as mit.
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 m…
Downloads · 30 days
2.4K
24% of all-time downloads
All-time downloads
10K
Public
Repo size
665 MB
Likes
0
Public
Click a slice to open those files.
.h5665 MB · 100%
From the Hugging Face model README
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.
<p align="center"> <img src="graphical_abstract.jpg" width="500"> </p>| 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 / other1 – 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}
}