File tree Expand file tree Collapse file tree 3 files changed +47
-8
lines changed
Expand file tree Collapse file tree 3 files changed +47
-8
lines changed Original file line number Diff line number Diff line change 22
33实现` YOLO_v1 ` 算法
44
5- ## 数据集
6-
7- 使用` 3 ` 类定位数据集,参考[[ 数据集] Image Localization Dataset] ( https://blog.zhujian.life/posts/a2d65e1.html )
8-
9- ```
10- {'cucumber': 63, 'mushroom': 61, 'eggplant': 62}
11- ```
12-
135## 实现流程
146
1571 . 创建训练数据集
Original file line number Diff line number Diff line change 1+
2+ # 数据集
3+
4+ 当前使用` 3 ` 类定位数据集,参考[[ 数据集] Image Localization Dataset] ( https://blog.zhujian.life/posts/a2d65e1.html )
5+
6+ ```
7+ {'cucumber': 63, 'mushroom': 61, 'eggplant': 62}
8+ ```
9+
10+ ## 解析
11+
12+ 下载数据集后,解压到` py/data ` 目录,得到` training_images ` ,其格式如下:
13+
14+ ```
15+ 。。。
16+ cucumber_4.xml eggplant_35.jpg mushroom_20.xml mushroom_7.jpg
17+ cucumber_50.jpg eggplant_35.xml mushroom_21.jpg mushroom_7.xml
18+ cucumber_50.xml eggplant_36.jpg mushroom_21.xml mushroom_8.jpg
19+ cucumber_51.jpg eggplant_36.xml mushroom_22.jpg mushroom_8.xml
20+ cucumber_51.xml eggplant_37.jpg mushroom_22.xml mushroom_9.jpg
21+ cucumber_52.jpg eggplant_37.xml mushroom_23.jpg mushroom_9.xml
22+ 。。。
23+ ```
24+
25+ 每个图像都有对应的标注文件,使用` parse_location.py ` 将两者分离
26+
27+ ```
28+ $ cd py/lib/data
29+ $ python parse_location.py
30+ ```
31+
32+ 最后在` /py/data/location_dataset ` 目录下得到` imgs ` 和` annotations ` 文件夹
33+
34+ ```
35+ ├── annotations
36+ │ ├── cucumber_10.xml
37+ │ ├── cucumber_11.xml
38+ │ ├── cucumber_12.xml
39+ 。。。
40+ 。。。
41+ └── imgs
42+ ├── cucumber_10.jpg
43+ ├── cucumber_11.jpg
44+ 。。。
45+ 。。。
46+ ```
Original file line number Diff line number Diff line change @@ -31,4 +31,5 @@ extra_javascript:
3131nav :
3232 - Home : index.md
3333 - 架构解析 : ' 架构解析.md'
34+ - 数据集 : ' 数据集.md'
3435 - log : log.md
You can’t perform that action at this time.
0 commit comments