PaddleClas/README_ch.md

187 lines
9.6 KiB
Markdown
Raw Normal View History

2021-06-21 17:12:49 +08:00
简体中文 | [English](README_en.md)
# PaddleClas
## 简介
2022-06-10 16:09:12 +08:00
飞桨图像识别套件PaddleClas是飞桨为工业界和学术界所准备的一个图像识别和图像分类任务的工具集助力使用者训练出更好的视觉模型和应用落地。
2021-06-21 17:12:49 +08:00
2022-06-09 20:08:29 +08:00
<div align="center">
<img src="./docs/images/class_simple.gif" width = "600" />
2022-06-14 09:11:02 +08:00
<p>PULC实用图像分类模型效果展示</p>
2022-06-09 20:08:29 +08:00
</div>
&nbsp;
<div align="center">
<img src="./docs/images/recognition.gif" width = "400" />
2022-06-14 09:11:02 +08:00
<p>PP-ShiTu图像识别系统效果展示</p>
2022-06-09 20:08:29 +08:00
</div>
2022-06-09 20:42:59 +08:00
## 近期更新
2022-06-14 11:44:57 +08:00
- 📢将于**6月15-6月17日晚20:30** 进行为期三天的课程直播,详细介绍超轻量图像分类方案,对各场景模型优化原理及使用方式进行拆解,之后还有产业案例全流程实操,对各类痛难点解决方案进行手把手教学,加上现场互动答疑,抓紧扫码上车吧!
2022-06-14 00:54:53 +08:00
2022-06-14 09:13:07 +08:00
<div align="center">
2022-06-14 11:04:18 +08:00
<img src="https://user-images.githubusercontent.com/45199522/173483779-2332f990-4941-4f8d-baee-69b62035fc31.png" width = "200" height = "200"/>
2022-06-14 09:13:07 +08:00
</div>
2022-06-14 00:54:53 +08:00
2022-06-13 14:25:46 +08:00
- 🔥️ 2022.6.15 发布[PULC超轻量图像分类实用方案](docs/zh_CN/PULC/PULC_train.md)CPU推理3ms精度比肩SwinTransformer覆盖人、车、OCR场景九大常见任务。
2022-06-14 00:54:53 +08:00
2022-06-09 20:08:29 +08:00
- 2022.5.26 [飞桨产业实践范例直播课](http://aglc.cn/v-c4FAR),解读**超轻量重点区域人员出入管理方案**。
2022-06-14 00:54:53 +08:00
2022-05-25 01:07:35 +08:00
- 2022.5.23 新增[人员出入管理范例库](https://aistudio.baidu.com/aistudio/projectdetail/4094475),具体内容可以在 AI Stuio 上体验。
2022-06-14 00:54:53 +08:00
2022-06-12 21:24:41 +08:00
- 2022.5.20 上线[PP-HGNet](./docs/zh_CN/models/PP-HGNet.md), [PP-LCNetv2](./docs/zh_CN/models/PP-LCNetV2.md)。
2022-06-14 00:54:53 +08:00
2022-04-25 13:57:19 +08:00
- 2022.4.21 新增 CVPR2022 oral论文 [MixFormer](https://arxiv.org/pdf/2204.02557.pdf) 相关[代码](https://github.com/PaddlePaddle/PaddleClas/pull/1820/files)。
2022-06-14 00:54:53 +08:00
2021-11-01 11:09:12 +08:00
- [more](./docs/zh_CN/others/update_history.md)
2021-06-21 17:12:49 +08:00
## 特性
2022-06-14 10:42:27 +08:00
PaddleClas发布了[PP-HGNet](docs/zh_CN/models/PP-HGNet.md)、[PP-LCNetv2](docs/zh_CN/models/PP-LCNetV2.md)、 [PP-LCNet](docs/zh_CN/models/PP-LCNet.md)和[SSLD半监督知识蒸馏方案](docs/zh_CN/advanced_tutorials/ssld.md)等算法,
并支持多种图像分类、识别相关算法,在此基础上打造[PULC超轻量图像分类方案](docs/zh_CN/PULC/PULC_quickstart.md)和[PP-ShiTu图像识别系统](./docs/zh_CN/quick_start/quick_start_recognition.md)。
2022-06-13 11:15:28 +08:00
![](https://user-images.githubusercontent.com/19523330/173273046-239a42da-c88d-4c2c-94b1-2134557afa49.png)
2022-06-09 20:42:59 +08:00
2021-06-21 17:12:49 +08:00
## 欢迎加入技术交流群
2022-06-14 15:32:25 +08:00
* 您可以扫描下面的微信/QQ二维码添加小助手微信并回复“C”加入PaddleClas微信交流群获得更高效的问题答疑与各行各业开发者充分交流期待您的加入。
2021-06-21 17:12:49 +08:00
<div align="center">
2022-04-21 14:07:39 +08:00
<img src="https://user-images.githubusercontent.com/48054808/160531099-9811bbe6-cfbb-47d5-8bdb-c2b40684d7dd.png" width="200"/>
2022-06-14 15:32:25 +08:00
<img src="https://user-images.githubusercontent.com/80816848/164383225-e375eb86-716e-41b4-a9e0-4b8a3976c1aa.jpg" width="200"/>
2021-06-21 17:12:49 +08:00
</div>
## 快速体验
2022-06-12 21:23:43 +08:00
PULC超轻量图像分类方案快速体验[点击这里](docs/zh_CN/PULC/PULC_quickstart.md)
2022-06-10 16:09:43 +08:00
2022-06-12 21:23:43 +08:00
PP-ShiTu图像识别快速体验[点击这里](./docs/zh_CN/quick_start/quick_start_recognition.md)
2021-06-21 17:12:49 +08:00
2021-11-02 09:49:04 +08:00
## 文档教程
2022-06-10 16:02:52 +08:00
- [环境准备](docs/zh_CN/installation/install_paddleclas.md)
2022-06-13 10:43:37 +08:00
- [PULC超轻量图像分类实用方案](docs/zh_CN/PULC/PULC_train.md)
2022-06-13 15:41:53 +08:00
- [超轻量图像分类快速体验](docs/zh_CN/PULC/PULC_quickstart.md)
2022-06-13 03:25:27 +08:00
- [超轻量图像分类模型库](docs/zh_CN/PULC/PULC_model_list.md)
2022-06-10 16:02:52 +08:00
- [PULC有人/无人分类模型](docs/zh_CN/PULC/PULC_person_exists.md)
2022-06-10 20:42:34 +08:00
- [PULC人体属性识别模型](docs/zh_CN/PULC/PULC_person_attribute.md)
2022-06-10 16:02:52 +08:00
- [PULC佩戴安全帽分类模型](docs/zh_CN/PULC/PULC_safety_helmet.md)
- [PULC交通标志分类模型](docs/zh_CN/PULC/PULC_traffic_sign.md)
- [PULC车辆属性识别模型](docs/zh_CN/PULC/PULC_vehicle_attribute.md)
2022-06-13 03:22:14 +08:00
- [PULC有车/无车分类模型](docs/zh_CN/PULC/PULC_car_exists.md)
2022-06-10 16:02:52 +08:00
- [PULC含文字图像方向分类模型](docs/zh_CN/PULC/PULC_text_image_orientation.md)
- [PULC文本行方向分类模型](docs/zh_CN/PULC/PULC_textline_orientation.md)
- [PULC语种分类模型](docs/zh_CN/PULC/PULC_language_classification.md)
2022-06-13 10:43:37 +08:00
- [模型训练](docs/zh_CN/PULC/PULC_train.md)
2022-06-10 16:02:52 +08:00
- 推理部署
- [基于python预测引擎推理](docs/zh_CN/inference_deployment/python_deploy.md#1)
- [基于C++预测引擎推理](docs/zh_CN/inference_deployment/cpp_deploy.md)
- [服务化部署](docs/zh_CN/inference_deployment/paddle_serving_deploy.md)
- [端侧部署](docs/zh_CN/inference_deployment/paddle_lite_deploy.md)
- [Paddle2ONNX模型转化与预测](deploy/paddle2onnx/readme.md)
- [模型压缩](deploy/slim/README.md)
2021-11-01 16:47:21 +08:00
- [PP-ShiTu图像识别系统介绍](#图像识别系统介绍)
2022-06-10 16:02:52 +08:00
- [图像识别快速体验](docs/zh_CN/quick_start/quick_start_recognition.md)
2022-06-10 14:43:29 +08:00
- 模块介绍
2021-11-03 16:49:55 +08:00
- [主体检测](./docs/zh_CN/image_recognition_pipeline/mainbody_detection.md)
2022-06-05 21:05:16 +08:00
- [特征提取模型](./docs/zh_CN/image_recognition_pipeline/feature_extraction.md)
2021-11-03 16:49:55 +08:00
- [向量检索](./docs/zh_CN/image_recognition_pipeline/vector_search.md)
2022-06-10 16:02:52 +08:00
- [哈希编码](docs/zh_CN/image_recognition_pipeline/)
- [模型训练](docs/zh_CN/models_training/recognition.md)
- 推理部署
- [基于python预测引擎推理](docs/zh_CN/inference_deployment/python_deploy.md#2)
2022-06-10 17:04:38 +08:00
- [基于C++预测引擎推理](deploy/cpp_shitu/readme.md)
2022-06-10 16:02:52 +08:00
- [服务化部署](docs/zh_CN/inference_deployment/paddle_serving_deploy.md)
- [端侧部署](deploy/lite_shitu/README.md)
- PP系列骨干网络模型
- [PP-HGNet](docs/zh_CN/models/PP-HGNet.md)
2022-06-12 21:24:41 +08:00
- [PP-LCNetv2](docs/zh_CN/models/PP-LCNetV2.md)
2022-06-10 16:02:52 +08:00
- [PP-LCNet](docs/zh_CN/models/PP-LCNet.md)
- [SSLD半监督知识蒸馏方案](docs/zh_CN/advanced_tutorials/ssld.md)
2022-06-05 21:05:16 +08:00
- 前沿算法
2022-06-10 16:02:52 +08:00
- [骨干网络和预训练模型库](docs/zh_CN/algorithm_introduction/ImageNet_models.md)
- [度量学习](docs/zh_CN/algorithm_introduction/metric_learning.md)
2022-06-13 14:39:43 +08:00
- [模型压缩](docs/zh_CN/algorithm_introduction/model_prune_quantization.md)
- [模型蒸馏](docs/zh_CN/algorithm_introduction/knowledge_distillation.md)
2022-06-10 16:02:52 +08:00
- [数据增强](docs/zh_CN/advanced_tutorials/DataAugmentation.md)
- [产业实用范例库](docs/zh_CN/samples)
- [30分钟快速体验图像分类](docs/zh_CN/quick_start/quick_start_classification_new_user.md)
2021-07-28 11:07:57 +08:00
- FAQ
2022-06-05 21:05:16 +08:00
- [图像识别精选问题](docs/zh_CN/faq_series/faq_2021_s2.md)
- [图像分类精选问题](docs/zh_CN/faq_series/faq_selected_30.md)
- [图像分类FAQ第一季](docs/zh_CN/faq_series/faq_2020_s1.md)
- [图像分类FAQ第二季](docs/zh_CN/faq_series/faq_2021_s1.md)
- [社区贡献指南](./docs/zh_CN/advanced_tutorials/how_to_contribute.md)
2021-06-21 17:12:49 +08:00
- [许可证书](#许可证书)
- [贡献代码](#贡献代码)
2022-06-09 20:39:08 +08:00
<a name="PULC超轻量图像分类方案"></a>
## PULC超轻量图像分类方案
<div align="center">
2022-06-10 16:02:52 +08:00
<img src="https://user-images.githubusercontent.com/19523330/173011854-b10fcd7a-b799-4dfd-a1cf-9504952a3c44.png" width = "800" />
2022-06-09 20:39:08 +08:00
</div>
PULC融合了骨干网络、数据增广、蒸馏等多种前沿算法可以自动训练得到轻量且高精度的图像分类模型。
PaddleClas提供了覆盖人、车、OCR场景九大常见任务的分类模型CPU推理3ms精度比肩SwinTransformer。
2021-08-09 15:33:54 +08:00
<a name="图像识别系统介绍"></a>
2022-06-10 14:43:29 +08:00
## PP-ShiTu图像识别系统
2021-06-21 17:12:49 +08:00
<div align="center">
2021-11-01 01:42:50 +08:00
<img src="./docs/images/structure.jpg" width = "800" />
2021-06-21 17:12:49 +08:00
</div>
2021-11-02 13:43:18 +08:00
PP-ShiTu是一个实用的轻量级通用图像识别系统主要由主体检测、特征学习和向量检索三个模块组成。该系统从骨干网络选择和调整、损失函数的选择、数据增强、学习率变换策略、正则化参数选择、预训练模型使用以及模型裁剪量化8个方面采用多种策略对各个模块的模型进行优化最终得到在CPU上仅0.2s即可完成10w+库的图像识别的系统。更多细节请参考[PP-ShiTu技术方案](https://arxiv.org/pdf/2111.00775.pdf)。
2021-06-21 17:12:49 +08:00
2022-06-10 14:43:29 +08:00
<a name="分类效果展示"></a>
## PULC实用图像分类模型效果展示
<div align="center">
<img src="docs/images/classification.gif">
</div>
2021-06-21 17:12:49 +08:00
<a name="识别效果展示"></a>
2021-11-03 16:49:55 +08:00
## PP-ShiTu图像识别系统效果展示
2021-11-01 01:31:57 +08:00
- 瓶装饮料识别
<div align="center">
<img src="docs/images/drink_demo.gif">
</div>
2021-11-01 01:33:23 +08:00
2021-06-21 17:12:49 +08:00
- 商品识别
<div align="center">
2021-06-21 21:28:39 +08:00
<img src="https://user-images.githubusercontent.com/18028216/122769644-51604f80-d2d7-11eb-8290-c53b12a5c1f6.gif" width = "400" />
2021-06-21 17:12:49 +08:00
</div>
- 动漫人物识别
<div align="center">
2021-06-21 21:28:39 +08:00
<img src="https://user-images.githubusercontent.com/18028216/122769746-6b019700-d2d7-11eb-86df-f1d710999ba6.gif" width = "400" />
2021-06-21 17:12:49 +08:00
</div>
- logo识别
<div align="center">
2021-06-21 21:28:39 +08:00
<img src="https://user-images.githubusercontent.com/18028216/122769837-7fde2a80-d2d7-11eb-9b69-04140e9d785f.gif" width = "400" />
2021-06-21 17:12:49 +08:00
</div>
2021-06-21 21:28:39 +08:00
2021-06-21 17:12:49 +08:00
- 车辆识别
<div align="center">
2021-06-21 21:28:39 +08:00
<img src="https://user-images.githubusercontent.com/18028216/122769916-8ec4dd00-d2d7-11eb-8c60-42d89e25030c.gif" width = "400" />
2021-06-21 17:12:49 +08:00
</div>
2021-06-21 21:28:39 +08:00
2021-06-21 17:12:49 +08:00
<a name="许可证书"></a>
## 许可证书
本项目的发布受<a href="https://github.com/PaddlePaddle/PaddleCLS/blob/master/LICENSE">Apache 2.0 license</a>许可认证。
<a name="贡献代码"></a>
## 贡献代码
我们非常欢迎你为PaddleClas贡献代码也十分感谢你的反馈。
2021-11-01 11:09:12 +08:00
如果想为PaddleCLas贡献代码可以参考[贡献指南](./docs/zh_CN/advanced_tutorials/how_to_contribute.md)。
2021-06-21 17:12:49 +08:00
- 非常感谢[nblib](https://github.com/nblib)修正了PaddleClas中RandErasing的数据增广配置文件。
- 非常感谢[chenpy228](https://github.com/chenpy228)修正了PaddleClas文档中的部分错别字。
- 非常感谢[jm12138](https://github.com/jm12138)为PaddleClas添加ViTDeiT系列模型和RepVGG系列模型。