zhanganyi88 commited on
Commit
e2ad49c
·
verified ·
1 Parent(s): 60ff3ae

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -23,7 +23,7 @@ from transformers.image_utils import load_image
23
 
24
  image_path = "your local image path"
25
  dim = 384
26
- image = cv2.imread(image)
27
  image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
28
  image = cv2.resize(image, (dim, dim))
29
  transform = transforms.ToTensor()
 
23
 
24
  image_path = "your local image path"
25
  dim = 384
26
+ image = cv2.imread(image_path)
27
  image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
28
  image = cv2.resize(image, (dim, dim))
29
  transform = transforms.ToTensor()