未验证 提交 69eecec7 编写于 作者: G Glenn Jocher 提交者: GitHub
上级 11c554c3
......@@ -120,12 +120,11 @@ import torch
# Model
model = torch.hub.load('ultralytics/yolov3', 'yolov3') # or 'yolov3_spp', 'yolov3_tiny'
# Images
dir = 'https://github.com/ultralytics/yolov3/raw/master/data/images/'
imgs = [dir + f for f in ('zidane.jpg', 'bus.jpg')] # batch of images
# Image
img = 'https://ultralytics.com/images/zidane.jpg'
# Inference
results = model(imgs)
results = model(img)
results.print() # or .show(), .save()
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册