Instructions to use CosmosDream/GalaxySD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use CosmosDream/GalaxySD with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("CosmosDream/GalaxySD", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
π 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:
- Make sure you have
diffusers,transformers,accelerate, andsafetensorsinstalled:
pip install diffusers transformers accelerate safetensors
- Load and run the model:
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 or contact authors.
π Project Resources
- π Homepage
- π GalaxySD Repository
- π οΈ Trained Galaxy Embedding Tool
- ποΈ Training Dataset
- π A Contributed Catalog
π Citation
@article{Ma_2026,
doi = {10.3847/1538-4365/ae1f10},
url = {https://doi.org/10.3847/1538-4365/ae1f10},
year = {2026},
month = {jan},
publisher = {The American Astronomical Society},
volume = {282},
number = {2},
pages = {25},
author = {Ma, Chenrui and Sun, Zechang and Jing, Tao and Cai, Zheng and Ting, Yuan-Sen and Huang, Song and Li, Mingyu},
title = {Can AI Dream of Unseen Galaxies? Conditional Diffusion Model for Galaxy Morphology Augmentation},
journal = {The Astrophysical Journal Supplement Series},
}
- Downloads last month
- 56
Model tree for CosmosDream/GalaxySD
Base model
stable-diffusion-v1-5/stable-diffusion-v1-5