Andyrasika
commited on
Commit
•
b1fde73
1
Parent(s):
8404645
Update README.md
Browse files
README.md
CHANGED
@@ -5,6 +5,18 @@ language:
|
|
5 |
tags:
|
6 |
- diffusion
|
7 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
```
|
9 |
import torch
|
10 |
from diffusers import StableDiffusionXLPipeline
|
|
|
5 |
tags:
|
6 |
- diffusion
|
7 |
---
|
8 |
+
SDXL-Dreamshaper
|
9 |
+
[SDXL](https://arxiv.org/abs/2307.01952) consists of an [ensemble of experts](https://arxiv.org/abs/2211.01324) pipeline for latent diffusion:
|
10 |
+
In a first step, the base model is used to generate (noisy) latents,
|
11 |
+
which are then further processed with a refinement model (available here: https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-1.0/) specialized for the final denoising steps.
|
12 |
+
Note that the base model can be used as a standalone module.
|
13 |
+
|
14 |
+
Alternatively, we can use a two-stage pipeline as follows:
|
15 |
+
First, the base model is used to generate latents of the desired output size.
|
16 |
+
In the second step, we use a specialized high-resolution model and apply a technique called SDEdit (https://arxiv.org/abs/2108.01073, also known as "img2img")
|
17 |
+
to the latents generated in the first step, using the same prompt. This technique is slightly slower than the first one, as it requires more function evaluations.
|
18 |
+
|
19 |
+
Source code is available at https://github.com/Stability-AI/generative-models .
|
20 |
```
|
21 |
import torch
|
22 |
from diffusers import StableDiffusionXLPipeline
|