Metadata-Version: 2.1
Name: bobotools
Version: 0.4.7.3
Summary: bobotools
Author: bobo0810
License: MIT
Classifier: Environment :: Console
Classifier: Natural Language :: English
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pytest
Requires-Dist: tqdm
Requires-Dist: opencv-python-headless
Requires-Dist: numpy
Requires-Dist: ptflops
Requires-Dist: torch
Requires-Dist: torchvision

# bobotools
[![OSCS Status](https://www.oscs1024.com/platform/badge/bobo0810/bobotools.svg?size=small)](https://www.oscs1024.com/project/bobo0810/bobotools?ref=badge_small)
- 收录到[PytorchNetHub](https://github.com/bobo0810/PytorchNetHub)

## 安装

```bash
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 |


## 参考

- [Python打包](https://www.jianshu.com/p/9a5e7c935273)


