Update README.md
Browse files
README.md
CHANGED
|
@@ -37,7 +37,7 @@ tiny_vae = Flux2TinyAutoEncoder.from_pretrained(
|
|
| 37 |
"fal/FLUX.2-Tiny-AutoEncoder",
|
| 38 |
).to(device=device, dtype=torch.bfloat16)
|
| 39 |
|
| 40 |
-
pil_image = Image.open("
|
| 41 |
image_tensor = F.to_tensor(pil_image)
|
| 42 |
image_tensor = image_tensor.unsqueeze(0) * 2.0 - 1.0
|
| 43 |
image_tensor = image_tensor.to(device, dtype=tiny_vae.dtype)
|
|
|
|
| 37 |
"fal/FLUX.2-Tiny-AutoEncoder",
|
| 38 |
).to(device=device, dtype=torch.bfloat16)
|
| 39 |
|
| 40 |
+
pil_image = Image.open("/path/to/image.png")
|
| 41 |
image_tensor = F.to_tensor(pil_image)
|
| 42 |
image_tensor = image_tensor.unsqueeze(0) * 2.0 - 1.0
|
| 43 |
image_tensor = image_tensor.to(device, dtype=tiny_vae.dtype)
|