Update README.md

This commit is contained in:
Glenn Jocher 2020-11-23 19:28:35 +01:00 committed by GitHub
parent 354109c54c
commit 8c0e7092a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -108,8 +108,7 @@ import torch
from PIL import Image from PIL import Image
# Model # Model
model = torch.hub.load('ultralytics/yolov5', 'yolov5s', pretrained=True).fuse().eval() # yolov5s.pt model = torch.hub.load('ultralytics/yolov5', 'yolov5s', pretrained=True).autoshape() # for PIL/cv2/np inputs and NMS
model = model.autoshape() # for autoshaping of PIL/cv2/np inputs and NMS
# Images # Images
img1 = Image.open('zidane.jpg') img1 = Image.open('zidane.jpg')