File size: 2,322 Bytes
1ece859 934099b 9e79615 934099b 9e79615 1ece859 0ec0d77 1ece859 2723b2a eeebf1e d0a18a5 eeebf1e 2723b2a efd8d75 2723b2a e35bdda b9ebc38 2723b2a 0f0de44 d8a7693 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
---
base_model:
- stable-diffusion-v1-5/stable-diffusion-v1-5
license: apache-2.0
pipeline_tag: text-to-image
library_name: diffusers
---
# π GalaxySD: Can AI Dream of Unseen Galaxies?
# Conditional Diffusion Model for Galaxy Morphology Augmentation
## π Model Description
This repository provides the trained weights for **GalaxySD**, a fine-tuned Stable Diffusion model designed to generate high-fidelity galaxy images from text prompts.
The model demonstrates strong performance in synthesizing visually realistic galaxies that adhere closely to specified morphological characteristics, such as spiral arms, bulge prominence, and edge-on orientation.
## π» How to Use
The file `galaxsd_final.safetensors` contains the fine-tuned Stable Diffusion weights for the **GalaxySD** model. To use this model in your own pipeline:
1. Make sure you have `diffusers`, `transformers`, `accelerate`, and `safetensors` installed:
```bash
pip install diffusers transformers accelerate safetensors
```
2. Load and run the model:
```bash
from diffusers import StableDiffusionPipeline
import torch
pipe = StableDiffusionPipeline.from_single_file(
"galaxsd_final.safetensors",
torch_dtype=torch.float16
).to("cuda")
prompt = "sdss, spiral galaxy, loosely wound spiral arms, 2 spiral arms"
image = pipe(prompt).images[0]
image.save("output.png")
```
If you encounter any issues, feel free to raise them in the [GalaxySD Repo](https://github.com/chenruiRae/GalaxySD) or contact authors.
## π Project Resources
- π [Homepage](https://galaxysd-webpage.streamlit.app/)
- π [GalaxySD Repository](https://github.com/chenruiRae/GalaxySD)
- π οΈ [Trained Galaxy Embedding Tool](https://huggingface.co/CosmosDream/GalaxyEmb)
- ποΈ [Training Dataset](https://zenodo.org/records/15669465)
- π [A Contributed Catalog](https://zenodo.org/records/15636756)
## π Citation
```
@misc{ma2025aidreamunseengalaxies,
title={Can AI Dream of Unseen Galaxies? Conditional Diffusion Model for Galaxy Morphology Augmentation},
author={Chenrui Ma and Zechang Sun and Tao Jing and Zheng Cai and Yuan-Sen Ting and Song Huang and Mingyu Li},
year={2025},
eprint={2506.16233},
archivePrefix={arXiv},
primaryClass={astro-ph.GA},
url={https://arxiv.org/abs/2506.16233},
}
```
|