KdaiP commited on
Commit
5f5c1ef
1 Parent(s): 3dcbe08

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -75
README.md CHANGED
@@ -1,75 +1,8 @@
1
- <div align="center">
2
- <h1> yolov8-deepsort-tracking </h1>
3
-
4
- [![Hugging Face Spaces](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue)](https://huggingface.co/spaces/KdaiP/yolov8-deepsort-tracking)
5
- </div>
6
-
7
- ![示例图片](./demo.png)
8
-
9
- opencv+yolov8+deepsort的行人检测与跟踪。当然,也可以识别车辆等其他类别。
10
-
11
- # 更新历史
12
-
13
- 2024/2/11更新:清理代码,完善注释。WebUI新增识别目标选择、进度条显示、终止推理、示例等功能。
14
-
15
- 2023/10/17更新:简化代码,删除不必要的依赖。解决webui上传视频不会清空tracker ID的问题。
16
-
17
- 2023/7/4更新:加入了一个基于Gradio的WebUI界面
18
-
19
- ## 安装
20
- 环境:Python>=3.8
21
-
22
- 本项目需要pytorch,建议手动在[pytorch官网](https://pytorch.org/get-started/locally/)根据自己的平台和CUDA环境安装对应的版本。
23
-
24
- pytorch的详细安装教程可以参照[Conda Quickstart Guide for Ultralytics](https://docs.ultralytics.com/guides/conda-quickstart/)
25
-
26
- 安装完pytorch后,需要通过以下命令来安装其他依赖:
27
-
28
- ```shell
29
- $ pip install -r requirements.txt
30
- ```
31
-
32
- 如果需要使用GUI,需要通过以下命令安装tqdm进度条和Gradio库:
33
-
34
- ```shell
35
- $ pip install tqdm gradio
36
- ```
37
-
38
-
39
- ## 配置(非WebUI)
40
-
41
- 在main.py中修改以下代码,将输入视频路径换成你要处理的视频的路径:
42
-
43
- ```python
44
- input_path = "test.mp4"
45
- ```
46
-
47
- 模型默认使用Ultralytics官方的YOLOv8n模型:
48
-
49
- ```python
50
- model = YOLO("yolov8n.pt")
51
- ```
52
-
53
- 第一次使用会自动从官网下载模型,如果网速过慢,可以在[ultralytics的官方文档](https://docs.ultralytics.com/tasks/detect/)下载模型,然后将模型文件拷贝到程序所在目录下。
54
-
55
- ## 运行(非WebUI)
56
-
57
- 运行main.py
58
-
59
- 推理完成后,终端会显示输出视频所在的路径。
60
-
61
- ## WebUI界面的配置和运行
62
-
63
- demo: [Huggingface demo](https://huggingface.co/spaces/KdaiP/yolov8-deepsort-tracking)
64
-
65
-
66
- 运行app.py,如果控制台出现以下消息代表成功运行:
67
- ```shell
68
- Running on local URL: http://127.0.0.1:6006
69
- To create a public link, set `share=True` in `launch()`
70
- ```
71
-
72
- 浏览器打开该URL即可使用WebUI界面
73
-
74
- ![WebUI](./webui.png)
75
-
 
1
+ ---
2
+ license: mit
3
+ title: yolov8-deepsort-tracking
4
+ sdk: gradio
5
+ emoji: ⚡
6
+ colorFrom: blue
7
+ pinned: false
8
+ ---