bobotools
Project description
bobotools
安装
pip install bobotools
or
pip install git+https://github.com/bobo0810/bobotools.git
工具类
Pytorch(torch_tools)
方法 | 功能 |
---|---|
get_model_info | 获取模型信息(模型大小、计算量、参数量、前向推理耗时等) |
图像(img_tools)
方法 | 功能 |
---|---|
read_web_img | 读取在线图片(url/base64/file) |
filter_md5 | 对输入的图像列表,互相去重,返回重复图像列表 |
verify_integrity | 对输入的图像列表,验证完整性,返回错误图像列表 |
tensor2img | Tenso恢复为图像,用于可视化 |
plot_yolo | 可视化yolo结果 |
文本(txt_tools)
方法 | 功能 |
---|---|
read_lines | 批量读取txt,支持指定分隔符 |
write_lines | 批量写入,保存为txt |
列表(list_tools)
方法 | 功能 |
---|---|
chunk_N | 列表均分为N块 |
chunk_per | 列表分块,每块为指定长度M |
参考
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
bobotools-0.4.7.3.tar.gz
(7.5 kB
view hashes)
Built Distribution
Close
Hashes for bobotools-0.4.7.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98d201f10c80e237c2b091253e3a1eb242fca38388e581006f9f0c979c2e2abe |
|
MD5 | 8030eacf1f66e2b944f847bc4e95bebd |
|
BLAKE2b-256 | e558bdd4eb2bdc19e32847d3e3d162d826cfbe8a1420197fe908d5bb40966e4c |