File size: 2,562 Bytes
4433093
d16309b
4433093
e23d549
d16309b
 
 
4433093
d16309b
08f52b2
 
 
e23d549
08f52b2
 
 
 
 
 
d16309b
 
 
 
 
 
08f52b2
 
e23d549
08f52b2
 
 
 
 
 
e23d549
08f52b2
 
 
 
 
d16309b
e23d549
08f52b2
 
 
 
 
d16309b
e23d549
d16309b
08f52b2
 
 
d16309b
 
08f52b2
 
 
d16309b
 
 
 
 
08f52b2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d16309b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
08f52b2
 
 
 
 
 
 
 
 
 
 
 
 
d16309b
 
 
 
 
 
08f52b2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d16309b
08f52b2
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
---
language: en
license: mit
thumbnail: https://i.ibb.co/6NLyc1P/stellar-diffusion.png
tags:
- stable-diffusion
- text-to-image
---

# Stellar Diffusion

Stellar Diffusion v0.1 vs Base Stable Diffusion v1.5
![Galaxy - Stellar Diffusion](images/galaxy_std.png) ![Galaxy - Stable Diffusion](images/galaxy_sd.png)
```
prompt = A hubble photograph of a galaxy
seed = 42
size = 512x512
```


Version: 0.1

Stable Diffusion 1.5 finetuned on high quality processed space imagery.

---
# Example Results

![Barred Spiral - Stellar Diffusion](images/barredspiral.png)
```
prompt = A barred spiral galaxy
seed = 44
size = 512x512
```

![Bright Constellation - Stellar Diffusion](images/brightconstellation.png)
```
prompt = bright, constellation, hubble, clouds
seed = 42
size = 512x512
```

![Nebula - Stellar Diffusion](images/nebula.png)
```
prompt = a hubble photograph of a nebula
seed = 42
size = 512x512
```

![NGC 7714 - Stellar Diffusion](images/ngc7714.png)
```
prompt = ngc 7714
seed = 42
size = 512x512
```

---

# Suggested parameters

512x512

---

# Reconized Tags

All reconized tags can be found in the tags.txt file. They are generated from the annotated descriptions of the photograph.
Current Dataset is small and is poor at generating exact celestial bodies, but is better at generating common generic bodies like nebula, galaxies etc.

### Partial support for scientific celestial body tags as follows:

NGC - New General Catalogue of Nebulae and Clusters of Stars

M / Messier - A set of 110 astronomical objects catalogued by the French astronomer Charles Messier

UGC – (catalog) Uppsala General Catalogue, a catalog of galaxies

### Partial support for the following classification methods as follows:

By recording instrument/spacecraft (ex. Voyager, Hubble)

By Color

By Celestial Body type

# Python Usage

```py
from diffusers import StableDiffusionPipeline
import torch

model_id = "rexwang8/stellar-diffusion"
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
pipe = pipe.to("cuda")

prompt = "A hubble photograph of a galaxy"
image = pipe(prompt).images[0]  
    
image.save("hubble_galaxy.png")
```

---

# Dataset and Credits

### Model

Rex Wang (me!)

RunwayML for their SD 1.5

### Compute

Coreweave - 2x A40s

### Dataset

91 of the 100 images from https://esahubble.org/ Top 100 Hubble Images
ESA/Hubble

---

# Planned

Expansion of dataset to include:

Solar system

Asteroids

More star types

Black holes

Exo planets

More data in general

---

# Version History

V0.1 - 91 image dataset