Update Hub Path inputs (#4200)

This commit is contained in:
Glenn Jocher authored and GitHub committed 2021-07-28 16:55:39 +02:00
1 parent 1f31b7c503
commit 2683b18079
2 files changed
+5 -3

No files matched your search

+3 -1
View File
@@ -115,9 +115,11 @@ if __name__ == '__main__':
import cv2
import numpy as np
from PIL import Image
from pathlib import Path
imgs = ['data/images/zidane.jpg', # filename
'https://github.com/ultralytics/yolov5/releases/download/v1.0/zidane.jpg', # URI
Path('data/images/zidane.jpg'), # Path
'https://ultralytics.com/images/zidane.jpg', # URI
cv2.imread('data/images/bus.jpg')[:, :, ::-1], # OpenCV
Image.open('data/images/bus.jpg'), # PIL
np.zeros((320, 640, 3))] # numpy