Update README.md
Browse files
README.md
CHANGED
|
@@ -77,7 +77,13 @@ from PIL import Image
|
|
| 77 |
from torchvision.transforms import ToTensor
|
| 78 |
|
| 79 |
# Load IP Adapter Image
|
| 80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
ip_image = cond.resize((512, 512))
|
| 82 |
|
| 83 |
prompt = "george washington"
|
|
|
|
| 77 |
from torchvision.transforms import ToTensor
|
| 78 |
|
| 79 |
# Load IP Adapter Image
|
| 80 |
+
hf_hub_download(repo_id="neuralvfx/LibreFlux-IP-Adapter",
|
| 81 |
+
filename="examples/david.png",
|
| 82 |
+
local_dir=".",
|
| 83 |
+
local_dir_use_symlinks=False)
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
ip_image = Image.open("david.png").convert("RGB")
|
| 87 |
ip_image = cond.resize((512, 512))
|
| 88 |
|
| 89 |
prompt = "george washington"
|