Unverified 提交 c4cb7c68 authored 作者: Glenn Jocher's avatar Glenn Jocher 提交者: GitHub

Update README.md (#7686)

上级 d4ea61e0
...@@ -81,15 +81,14 @@ pip install -r requirements.txt # install ...@@ -81,15 +81,14 @@ pip install -r requirements.txt # install
<details open> <details open>
<summary>Inference</summary> <summary>Inference</summary>
Inference with YOLOv5 and [PyTorch Hub](https://github.com/ultralytics/yolov5/issues/36) YOLOv5 [PyTorch Hub](https://github.com/ultralytics/yolov5/issues/36) inference. [Models](https://github.com/ultralytics/yolov5/tree/master/models) download automatically from the latest
. [Models](https://github.com/ultralytics/yolov5/tree/master/models) download automatically from the latest
YOLOv5 [release](https://github.com/ultralytics/yolov5/releases). YOLOv5 [release](https://github.com/ultralytics/yolov5/releases).
```python ```python
import torch import torch
# Model # Model
model = torch.hub.load('ultralytics/yolov5', 'yolov5s') # or yolov5m, yolov5l, yolov5x, custom model = torch.hub.load('ultralytics/yolov5', 'yolov5s') # or yolov5n - yolov5x6, custom
# Images # Images
img = 'https://ultralytics.com/images/zidane.jpg' # or file, Path, PIL, OpenCV, numpy, list img = 'https://ultralytics.com/images/zidane.jpg' # or file, Path, PIL, OpenCV, numpy, list
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论