Update README.md
Browse files
README.md
CHANGED
@@ -19,13 +19,25 @@ library_name: diffusers
|
|
19 |
- original configuration yaml: https://github.com/frank-xwang/InstanceDiffusion/blob/main/configs/test_sd15.yaml
|
20 |
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
# Example Usage
|
23 |
|
24 |
```python
|
25 |
import torch
|
26 |
from diffusers import StableDiffusionINSTDIFFPipeline
|
27 |
|
28 |
-
pipe = StableDiffusionINSTDIFFPipeline.from_pretrained(
|
|
|
|
|
|
|
29 |
pipe = pipe.to("cuda")
|
30 |
|
31 |
prompt = "a yellow American robin, brown Maltipoo dog, a gray British Shorthair in a stream, alongside with trees and rocks"
|
|
|
19 |
- original configuration yaml: https://github.com/frank-xwang/InstanceDiffusion/blob/main/configs/test_sd15.yaml
|
20 |
|
21 |
|
22 |
+
# Install
|
23 |
+
|
24 |
+
StableDiffusionINSTDIFFPipeline is yet merged into diffusrs. Please refer to the forked version.
|
25 |
+
|
26 |
+
```bash
|
27 |
+
git clone -b instancediffusion https://github.com/gokyeongryeol/diffusers.git
|
28 |
+
cd diffusers & pip install -e .
|
29 |
+
```
|
30 |
+
|
31 |
# Example Usage
|
32 |
|
33 |
```python
|
34 |
import torch
|
35 |
from diffusers import StableDiffusionINSTDIFFPipeline
|
36 |
|
37 |
+
pipe = StableDiffusionINSTDIFFPipeline.from_pretrained(
|
38 |
+
"kyeongry/instancediffusion_sd15",
|
39 |
+
# variant="fp16", torch_dtype=torch.float16,
|
40 |
+
)
|
41 |
pipe = pipe.to("cuda")
|
42 |
|
43 |
prompt = "a yellow American robin, brown Maltipoo dog, a gray British Shorthair in a stream, alongside with trees and rocks"
|