Browse Source

Update README.md

5.0
Glenn Jocher GitHub 3 years ago
parent
commit
8c0e7092a2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      README.md

+ 1
- 2
README.md View File

@@ -108,8 +108,7 @@ import torch
from PIL import Image

# Model
model = torch.hub.load('ultralytics/yolov5', 'yolov5s', pretrained=True).fuse().eval() # yolov5s.pt
model = model.autoshape() # for autoshaping of PIL/cv2/np inputs and NMS
model = torch.hub.load('ultralytics/yolov5', 'yolov5s', pretrained=True).autoshape() # for PIL/cv2/np inputs and NMS

# Images
img1 = Image.open('zidane.jpg')

Loading…
Cancel
Save