Update README.md
Browse files
README.md
CHANGED
|
@@ -10,14 +10,15 @@ Work in progress. Not fully functional yet. Code is being transferred and adapte
|
|
| 10 |
### Compatibility
|
| 11 |
|
| 12 |
- Use these specific library versions:
|
| 13 |
-
```
|
| 14 |
pip install -U diffusers==0.32.0
|
| 15 |
pip install -U "transformers @ git+https://github.com/huggingface/transformers@e15687fffe5c9d20598a19aeab721ae0a7580f8a"
|
| 16 |
```
|
| 17 |
|
| 18 |
### Load Pipeline
|
| 19 |
|
| 20 |
-
```
|
|
|
|
| 21 |
from diffusers import DiffusionPipeline
|
| 22 |
|
| 23 |
model_id = "neuralvfx/LibreFlux-ControlNet"
|
|
@@ -36,7 +37,8 @@ pipe = DiffusionPipeline.from_pretrained(
|
|
| 36 |
|
| 37 |
### Inference
|
| 38 |
|
| 39 |
-
```
|
|
|
|
| 40 |
# Load Control Image
|
| 41 |
cond = Image.open("examples/libe_flux_control.png")
|
| 42 |
cond = cond.resize((1024, 1024))
|
|
|
|
| 10 |
### Compatibility
|
| 11 |
|
| 12 |
- Use these specific library versions:
|
| 13 |
+
```py
|
| 14 |
pip install -U diffusers==0.32.0
|
| 15 |
pip install -U "transformers @ git+https://github.com/huggingface/transformers@e15687fffe5c9d20598a19aeab721ae0a7580f8a"
|
| 16 |
```
|
| 17 |
|
| 18 |
### Load Pipeline
|
| 19 |
|
| 20 |
+
```py
|
| 21 |
+
import torch
|
| 22 |
from diffusers import DiffusionPipeline
|
| 23 |
|
| 24 |
model_id = "neuralvfx/LibreFlux-ControlNet"
|
|
|
|
| 37 |
|
| 38 |
### Inference
|
| 39 |
|
| 40 |
+
```py
|
| 41 |
+
from PIL import Image
|
| 42 |
# Load Control Image
|
| 43 |
cond = Image.open("examples/libe_flux_control.png")
|
| 44 |
cond = cond.resize((1024, 1024))
|