Update README.md
This commit is contained in:
1 parent
354109c54c
commit
8c0e7092a2
1 file changed
+1
-2
@@ -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')
|
||||||
|
|||||||
Reference in new issue
Block a user