bobotools
Project description
bobotools
安装
pip install bobotools
or
pip install git+https://github.com/bobo0810/bobotools.git
工具类
Pytorch(torch_tools)
方法 | 功能 |
---|---|
get_model_info | 获取模型信息(模型大小、计算量、参数量、前向推理耗时等) |
vis_tensor | 可视化tensor |
vis_cam | 可视化注意力图 |
图像(img_tools)
方法 | 功能 |
---|---|
download_url | 多进程下载URL图像 |
filter_md5 | 对输入的图像列表,互相去重,返回重复图像列表 |
verify_integrity | 对输入的图像列表,验证完整性,返回错误图像列表 |
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.8.0.tar.gz
(8.9 kB
view hashes)
Built Distribution
Close
Hashes for bobotools-0.4.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 691228f8e78f7bf863588930f48332d4b7737230051f2ea10b204d4ae026d69c |
|
MD5 | 969686ba78f1446d957d31cdd4f963dd |
|
BLAKE2b-256 | 36c8293af35c58247915ca75267b88786ac68f16d8760bdcf0f7aeb97b59fdab |