YOLO label & image utils
Project description
yoloutils - YOLO Utilities
YOLO 标签工具集 - 用于处理 YOLO 目标检测数据集的标签和图片。
作者: Neo netkiller@msn.com 官网: https://www.netkiller.cn
从 PyPI 安装
使用 pip 安装
pip install netkiller-yoloutils
帮助信息
(.venv) neo@Neo-Mac-mini-M4 yoloutils % yoloutils
usage: yoloutils [-h] {label,merge,copy,remove,change,crop,labelimg,resize,classify} ...
Yolo 标签工具
options:
-h, --help show this help message and exit
subcommands:
valid subcommands
{label,merge,copy,remove,change,crop,labelimg,resize,classify}
additional help
label 标签处理工具
merge 合并两个TXT文件中的标签到新TXT文件
copy 从指定标签复制图片文件
remove 从YOLO TXT文件中删除指定标签
change 修改标签索引
crop 图片裁剪
labelimg labelimg 格式转换为 yolo 训练数据集
resize 修改图片尺寸
classify 图像分类数据处理
Author: netkiller - https://www.netkiller.cn
标签管理
(.venv) neo@Neo-Mac-mini-M4 yoloutils % yoloutils label -h
usage: yoloutils label [-h] [--source /tmp/dir1] [--classes] [--total] [--index] [--search 1 2 3 [1 2 3 ...]]
options:
-h, --help show this help message and exit
--source /tmp/dir1 目录
--classes 查看 classes.txt 文件
--total 统计标签图数量
--index 统计标签索引数量
--search 1 2 3 [1 2 3 ...]
搜索标签
合并标签
(.venv) neo@Neo-Mac-mini-M4 yoloutils % yoloutils merge -h
usage: yoloutils merge [-h] [--left /tmp/dir1] [--right /tmp/dir2] [--output /tmp/output] [--clean]
options:
-h, --help show this help message and exit
--left /tmp/dir1 左侧目录
--right /tmp/dir2 右侧目录
--output /tmp/output 最终输出目录
--clean 清理之前的数据
复制标签
(.venv) neo@Neo-Mac-mini-M4 yoloutils % yoloutils copy -h
usage: yoloutils copy [-h] [--source SOURCE] [--target TARGET] [--label LABEL] [-u] [-c]
options:
-h, --help show this help message and exit
--source SOURCE 图片来源地址
--target TARGET 图片目标地址
--label LABEL 逗号分割多个标签
-u, --uuid UUID 文件名
-c, --clean 清理目标文件夹
删除标签
(.venv) neo@Neo-Mac-mini-M4 yoloutils % yoloutils remove -h
usage: yoloutils remove [-h] [--source SOURCE] [--target TARGET] [--clean] [--classes 1 2 3 [1 2 3 ...]]
[--label label1 label2 [label1 label2 ...]]
options:
-h, --help show this help message and exit
--classes 1 2 3 [1 2 3 ...]
标签序号
--label label1 label2 [label1 label2 ...]
标签名称
通用参数:
--source SOURCE 图片来源地址
--target TARGET 图片目标地址
--clean 清理之前的数据
修改标签
(.venv) neo@Neo-Mac-mini-M4 yoloutils % yoloutils change -h
usage: yoloutils change [-h] [--source /tmp/dir1] [--search 1 2 3 [1 2 3 ...]] [--replace 4 5 6 [4 5 6 ...]]
options:
-h, --help show this help message and exit
--source /tmp/dir1 目录
--search 1 2 3 [1 2 3 ...]
标签序号
--replace 4 5 6 [4 5 6 ...]
标签名称
裁剪图片
(.venv) neo@Neo-Mac-mini-M4 yoloutils % yoloutils crop -h
usage: yoloutils crop [-h] [--source SOURCE] [--target TARGET] [--clean] [--model best.pt] [--output /tmp/output]
options:
-h, --help show this help message and exit
--model best.pt 模型
--output /tmp/output Yolo 输出目录
通用参数:
--source SOURCE 图片来源地址
--target TARGET 图片目标地址
--clean 清理之前的数据
labelimg 转 yolo 训练数据集
(.venv) neo@Neo-Mac-mini-M4 yoloutils % yoloutils labelimg -h
usage: yoloutils labelimg [-h] [--source SOURCE] [--target TARGET] [--clean] [--classes CLASSES] [--val 10] [--uuid] [--check]
options:
-h, --help show this help message and exit
--classes CLASSES classes.txt 文件
--val 10 检验数量
--uuid 输出文件名使用UUID
--check 图片检查 corrupt JPEG restored and saved
通用参数:
--source SOURCE 图片来源地址
--target TARGET 图片目标地址
--clean 清理之前的数据
修改图片尺寸
(.venv) neo@Neo-Mac-mini-M4 yoloutils % yoloutils resize -h
usage: yoloutils resize [-h] [--source SOURCE] [--target TARGET] [--clean] [--imgsz 640] [--output ]
options:
-h, --help show this help message and exit
--imgsz 640 长边尺寸
--output 输出识别图像
通用参数:
--source SOURCE 图片来源地址
--target TARGET 图片目标地址
--clean 清理之前的数据
图像分类数据处理
(.venv) neo@Neo-Mac-mini-M4 yoloutils % yoloutils classify -h
usage: yoloutils classify [-h] [--source SOURCE] [--target TARGET] [--clean] [--output ] [--checklist ] [--test 100] [--crop] [--model ]
[--uuid] [--verbose]
options:
-h, --help show this help message and exit
--output 输出识别图像
--checklist 输出识别图像
--test 100 测试数量
--crop 裁剪
--model 裁剪模型
--uuid 重命名图片为UUID
--verbose 过程输出
通用参数:
--source SOURCE 图片来源地址
--target TARGET 图片目标地址
--clean 清理之前的数据
模型测试
(.venv) neo@netkiller yoloutils % yoloutils test -h
usage: yoloutils.py test [-h] [--source SOURCE] [--target TARGET] [--clean] [--model MODEL] [--csv result.csv] [--output OUTPUT]
options:
-h, --help show this help message and exit
--model MODEL 模型路径
--csv result.csv 保存测试结果
--output OUTPUT 测试结果输出路径
通用参数:
--source SOURCE 图片来源地址
--target TARGET 图片目标地址
--clean 清理之前的数据
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
netkiller_yoloutils-0.0.8.tar.gz
(30.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file netkiller_yoloutils-0.0.8.tar.gz.
File metadata
- Download URL: netkiller_yoloutils-0.0.8.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2e851b8d19aea7e7ecdfb703bba269b6f862e31cb0d91c748fdd7e7993c7169
|
|
| MD5 |
2a094fb5b345e421d44991bbd13f5de6
|
|
| BLAKE2b-256 |
54d2f91e65c02a879a38c73da854ddb60eca31e6452d4aaa5bc2e6680618e478
|
File details
Details for the file netkiller_yoloutils-0.0.8-py3-none-any.whl.
File metadata
- Download URL: netkiller_yoloutils-0.0.8-py3-none-any.whl
- Upload date:
- Size: 34.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
938913e3724accd904a0d60e1b593f14e40155c98b276df96ad72cf44b3a5108
|
|
| MD5 |
36ac09df506b31ae9593d33a51fffb4d
|
|
| BLAKE2b-256 |
6a53c420e32a81a9a572b3707aeab499b41101bcdeab2432582017b5f4d8e7b2
|