Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,54 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language: en
|
| 3 |
license: mit
|
| 4 |
+
tags:
|
| 5 |
+
- stable-diffusion
|
| 6 |
+
- text-to-image
|
| 7 |
---
|
| 8 |
+
|
| 9 |
+
#Stellar Diffusion
|
| 10 |
+
|
| 11 |
+
Version: 0.1
|
| 12 |
+
|
| 13 |
+
Stable Diffusion 1.5 finetuned on high quality processed space imagery.
|
| 14 |
+
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
#Example Prompt
|
| 18 |
+
|
| 19 |
+
```
|
| 20 |
+
A hubble photograph of a galaxy
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
##Suggested parameters
|
| 24 |
+
|
| 25 |
+
512x512
|
| 26 |
+
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
#Python Usage
|
| 30 |
+
|
| 31 |
+
```py
|
| 32 |
+
from diffusers import StableDiffusionPipeline
|
| 33 |
+
import torch
|
| 34 |
+
|
| 35 |
+
model_id = "rexwang8/stellar-diffusion"
|
| 36 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 37 |
+
pipe = pipe.to("cuda")
|
| 38 |
+
|
| 39 |
+
prompt = "A hubble photograph of a galaxy"
|
| 40 |
+
image = pipe(prompt).images[0]
|
| 41 |
+
|
| 42 |
+
image.save("hubble_galaxy.png")
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
---
|
| 46 |
+
|
| 47 |
+
#Dataset
|
| 48 |
+
|
| 49 |
+
91 of the 100 images from https://esahubble.org/ Top 100 Hubble Images
|
| 50 |
+
ESA/Hubble
|
| 51 |
+
|
| 52 |
+
---
|
| 53 |
+
|
| 54 |
+
|