glenn-jocher
commited on
Commit
•
8c0e709
1
Parent(s):
354109c
Update README.md
Browse files
README.md
CHANGED
@@ -108,8 +108,7 @@ import torch
|
|
108 |
from PIL import Image
|
109 |
|
110 |
# Model
|
111 |
-
model = torch.hub.load('ultralytics/yolov5', 'yolov5s', pretrained=True).
|
112 |
-
model = model.autoshape() # for autoshaping of PIL/cv2/np inputs and NMS
|
113 |
|
114 |
# Images
|
115 |
img1 = Image.open('zidane.jpg')
|
|
|
108 |
from PIL import Image
|
109 |
|
110 |
# Model
|
111 |
+
model = torch.hub.load('ultralytics/yolov5', 'yolov5s', pretrained=True).autoshape() # for PIL/cv2/np inputs and NMS
|
|
|
112 |
|
113 |
# Images
|
114 |
img1 = Image.open('zidane.jpg')
|