当前位置:网站首页>Yolov5进阶之七目标追踪最新环境搭建(二)
Yolov5进阶之七目标追踪最新环境搭建(二)
2022-07-03 14:43:00 【宇称不守恒4.0】
前面已经介绍了deepsort最新环境搭建的过程,本节在使用github另外的源码建立目标追踪环境,本节提供了从Google Drive 下载的crowd_human.pt来作为识别的权重文件,同时实现用class 来限制识别的类别,实现某种类别的追踪。具体流程如下:
https://github.com/ynlx/Yolov5_DeepSort
这是gihub上另一个yolov5_DeepSort版本,是在mike版本上微调的版本,使用起来比较方便,tag 图标对应 3.0-5.0 版本,但注意最新版本执行时仍要翻墙。建立环境和requirements过程不在赘述,可以参考Yolov5进阶之七目标追踪最新环境搭建。使用Yolov5_DeepSort5.0版,yolov5 使用6.1.
如果提示No module named ‘yolov5.utils.downloads’ 就是yolov5版本太低,低版本yolov5 utils里没有 downloads 文件夹。
安装好后执行
python track.py --source 0
在下载完 pt 模型后会提示超时失败。
科学上网后,链接上pt文件后 成功,测试分类追踪
python track.py --source 0 --yolo_model yolov5s.pt --classes 16 17
摄像头会捕捉 yolov5 中的16 17 类就是猫和狗,科学上网后成功。继续测试人群追踪
python track.py --source 0 --yolo_model yolov5/crowdhuman_yolov5m.pt --classes 0
这个crowdhuman_yolov5m.pt 是从 google drive上下载的,应该是yolo6.0以后版本的。下载地址为https://download.csdn.net/download/buaaweibin/85853856
所以要避免科学上网要使用ds3.0+ YOLO5.0 版本,权重文件需要yolo5.0环境自行学习。
边栏推荐
- Doris学习笔记之数据表的创建
- C language dup2 function
- Zzuli: cumulative sum of 1050 factorials
- On MEM series functions of C language
- NOI OPENJUDGE 1.4(15)
- 7-10 stack of hats (25 points) (C language solution)
- Code writing and playing method of tonybot humanoid robot at fixed distance
- 【7.3】146. LRU caching mechanism
- Use of constraintlayout
- Timecho of Tianmou technology completed an angel round financing of nearly 100 million yuan to create a native timing database of the industrial Internet of things
猜你喜欢

Qt development - scrolling digital selector commonly used in embedded system

C language fcntl function

Doris学习笔记之数据表的创建

Puzzle (016.4) domino effect

dllexport和dllimport

分布式事务(Seata) 四大模式详解

Bibit pharmaceutical rushed to the scientific innovation board: annual revenue of 970000, loss of 137million, proposed to raise 2billion

Dllexport et dllimport

ShowMeBug入驻腾讯会议,开启专业级技术面试时代

To improve efficiency or increase costs, how should developers understand pair programming?
随机推荐
动态获取权限
Thread. Sleep and timeunit SECONDS. The difference between sleep
Zzuli:1049 square sum and cubic sum
Address book sorting
Some concepts about agile
Sub GHz wireless solution Z-Wave 800 Series zg23 SOC and zgm230s modules
亚马逊、速卖通、Lazada、Shopee、eBay、wish、沃尔玛、阿里国际、美客多等跨境电商平台,测评自养号该如何利用产品上新期抓住流量?
tonybot 人形機器人 紅外遙控玩法 0630
Bucket sorting in C language
The mail function of LNMP environment cannot send mail
Luogu p5018 [noip2018 popularization group] symmetric binary tree problem solution
C language DUP function
Table of mathematical constants by q779
Code writing and playing method of tonybot humanoid robot at fixed distance
Sword finger offer 28 Symmetric binary tree
C language memory function
分布式事务(Seata) 四大模式详解
X86 assembly language - Notes from real mode to protected mode
On MEM series functions of C language
How to color ordinary landscape photos, PS tutorial