Update README.md
Browse files
README.md
CHANGED
@@ -4,3 +4,17 @@ license: apache-2.0
|
|
4 |
|
5 |
This is the same controlnet as the promax version of https://huggingface.co/xinsir/controlnet-union-sdxl-1.0 but with the correct naming of the files so it can be used directly.
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
This is the same controlnet as the promax version of https://huggingface.co/xinsir/controlnet-union-sdxl-1.0 but with the correct naming of the files so it can be used directly.
|
6 |
|
7 |
+
## How to use:
|
8 |
+
|
9 |
+
```python
|
10 |
+
import torch
|
11 |
+
|
12 |
+
from diffusers import ControlNetUnionModel
|
13 |
+
|
14 |
+
|
15 |
+
controlnet_model = ControlNetUnionModel.from_pretrained(
|
16 |
+
"OzzyGT/controlnet-union-promax-sdxl-1.0",
|
17 |
+
torch_dtype=torch.float16,
|
18 |
+
variant="fp16",
|
19 |
+
)
|
20 |
+
```
|