Update README.md
Browse files
README.md
CHANGED
@@ -1,4 +1,34 @@
|
|
1 |
---
|
2 |
datasets:
|
3 |
- huggan/few-shot-aurora
|
4 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
datasets:
|
3 |
- huggan/few-shot-aurora
|
4 |
+
---
|
5 |
+
|
6 |
+
---
|
7 |
+
datasets:
|
8 |
+
- huggan/few-shot-aurora
|
9 |
+
---
|
10 |
+
|
11 |
+
# Usage
|
12 |
+
|
13 |
+
## Option 1 (Slow)
|
14 |
+
```python
|
15 |
+
from diffusers import DDPMPipeline
|
16 |
+
|
17 |
+
pipeline = DDPMPipeline.from_pretrained('li-yan/diffusion-aurora-256')
|
18 |
+
image = pipeline().images[0]
|
19 |
+
image
|
20 |
+
```
|
21 |
+
|
22 |
+
## Option 2 (Fast)
|
23 |
+
```python
|
24 |
+
from diffusers import DiffusionPipeline, DDIMScheduler
|
25 |
+
|
26 |
+
scheduler = DDIMScheduler.from_pretrained('li-yan/diffusion-aurora-256')
|
27 |
+
scheduler.set_timesteps(num_inference_steps=40)
|
28 |
+
|
29 |
+
pipeline = DiffusionPipeline.from_pretrained(
|
30 |
+
'li-yan/diffusion-aurora-256', scheduler=scheduler).to("cuda")
|
31 |
+
|
32 |
+
images = pipeline(num_inference_steps=40).images
|
33 |
+
images[0]
|
34 |
+
```
|