Ubuntu20.04安装yolov5
时间: 2023-11-06 08:08:02 浏览: 310
libtorch-yolov5
安装 YOLOv5 可以按照以下步骤进行:
1. 安装 Python3 和 pip3:
```
sudo apt-get update
sudo apt-get install python3-pip
```
2. 安装 YOLOv5:
```
git clone https://github.com/ultralytics/yolov5.git
cd yolov5
pip3 install -r requirements.txt
```
3. 下载预训练模型:
```
cd yolov5
wget https://github.com/ultralytics/yolov5/releases/download/v5.0/yolov5s.pt
```
4. 运行 YOLOv5:
```
cd yolov5
python3 detect.py --source 0 --weights yolov5s.pt --conf 0.4
```
阅读全文