Update README.md
Browse files
README.md
CHANGED
|
@@ -47,8 +47,10 @@ pipe = DiffusionPipeline.from_pretrained(
|
|
| 47 |
# Inference
|
| 48 |
```py
|
| 49 |
from PIL import Image
|
|
|
|
|
|
|
| 50 |
# Load Control Image
|
| 51 |
-
cond = Image.open("
|
| 52 |
cond = cond.resize((1024, 1024))
|
| 53 |
|
| 54 |
# Convert PIL image to tensor and move to device with correct dtype
|
|
|
|
| 47 |
# Inference
|
| 48 |
```py
|
| 49 |
from PIL import Image
|
| 50 |
+
from torchvision.transforms import ToTensor
|
| 51 |
+
|
| 52 |
# Load Control Image
|
| 53 |
+
cond = Image.open("libre_flux_control_image.png")
|
| 54 |
cond = cond.resize((1024, 1024))
|
| 55 |
|
| 56 |
# Convert PIL image to tensor and move to device with correct dtype
|