neuralvfx commited on
Commit
70422b4
·
verified ·
1 Parent(s): c0db0f4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -1
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("examples/libre_flux_control_image.png")
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