README.md 11.5 KB
Newer Older
Z
Zeyu Chen 已提交
1 2 3 4
<p align="center">	
 <img src="./docs/imgs/paddlehub_logo.jpg" align="middle"  	
</p>

Z
Zeyu Chen 已提交
5 6 7

------------------------------------------------------------------------------------------

W
wuzewu 已提交
8
[![License](https://img.shields.io/badge/license-Apache%202-red.svg)](LICENSE)
Z
Zeyu Chen 已提交
9
[![Version](https://img.shields.io/github/release/PaddlePaddle/PaddleHub.svg)](https://github.com/PaddlePaddle/PaddleHub/releases)
W
wuzewu 已提交
10 11
![python version](https://img.shields.io/badge/python-3.6+-orange.svg)
![support os](https://img.shields.io/badge/os-linux%2C%20win%2C%20mac-yellow.svg)
W
wuzewu 已提交
12

Z
Zeyu Chen 已提交
13

W
wuzewu 已提交
14
## 简介
D
Daniel Yang 已提交
15 16
- PaddleHub旨在为开发者提供丰富的、高质量的、直接可用的预训练模型。
- **【无需深度学习背景、无需数据与训练过程】**,可快速使用AI模型,享受人工智能时代红利。
G
grasswolfs 已提交
17 18 19 20 21
- 涵盖CV、NLP、Audio、Video主流四大品类,支持**一键预测****一键服务化部署****快速迁移学习**
- 全部模型开源下载,**离线可运行**


## 近期更新
G
grasswolfs 已提交
22
- **2020.11.20**,发布2.0-beta版本,全面迁移动态图编程模式,服务化部署Serving能力升级;新增手部关键点检测1个、图像动漫化类12个、图片编辑类3个,语音合成类3个,句法分析1个,预训练模型总量到达 **【182】** 个。
G
grasswolfs 已提交
23 24 25 26
- **2020.10.09**,新增OCR多语言系列模型4个,图像编辑模型4个,预训练模型总量到达 **【162】** 个。
- **2020.09.27**,新增文本生成模型6个,图像分割模型1个,预训练模型总量到达 **【154】** 个。
- **2020.08.13**,发布v1.8.1,新增人像分割模型Humanseg,支持EMNLP2019-Sentence-BERT作为文本匹配任务网络,预训练模型总量到达 **【147】** 个。
- **2020.07.29**,发布v1.8.0,新增AI对联和AI写诗、jieba切词,文本数据LDA、语义相似度计算,新增目标检测,短视频分类模型,超轻量中英文OCR,新增行人检测、车辆检测、动物识别等工业级模型,支持VisualDL可视化训练,预训练模型总量到达 **【135】** 个。
G
grasswolfs 已提交
27
- [More](./docs/release.md)
G
grasswolfs 已提交
28

K
kinghuin 已提交
29

G
grasswolfs 已提交
30
## [特性](./docs/figures.md)
G
grasswolfs 已提交
31 32 33 34 35 36 37 38 39
- **【丰富的预训练模型】**:涵盖CV、NLP、Audio、Video主流四大品类的 180+ 预训练模型,全部开源下载,离线可运行。
- **【一键模型快速预测】**:通过一行命令行或者极简的Python API实现模型调用,可快速体验模型效果。
- **【一键模型转服务化】**:一行命令,搭建深度学习模型API服务化部署能力。
- **【十行代码迁移学习】**:十行代码完成图片分类、文本分类的迁移学习任务
- **【PIP安装便捷】**:支持PIP快速安装使用
- **【跨平台兼容性】**:可运行于Linux、Windows、MacOS等多种操作系统


## 精品模型效果展示
G
grasswolfs 已提交
40 41
### 文本识别
- 包含超轻量中英文OCR模型,高精度中英文、多语种德语、法语、日语、韩语OCR识别。
G
grasswolfs 已提交
42
<div align="center">
G
grasswolfs 已提交
43
<img src="./docs/imgs/Readme_Related/Image_Ocr.gif"  width = "800" height = "400" />
G
grasswolfs 已提交
44
</div>
G
grasswolfs 已提交
45 46 47

### 人脸检测
- 包含人脸检测,口罩人脸检测,多种算法可选。
G
grasswolfs 已提交
48
<div align="center">
G
grasswolfs 已提交
49
<img src="./docs/imgs/Readme_Related/Image_ObjectDetection_Face_Mask.gif"  width = "588" height = "400" />
G
grasswolfs 已提交
50
</div>
G
grasswolfs 已提交
51

G
grasswolfs 已提交
52
### 图像编辑
G
grasswolfs 已提交
53
- 4倍超分效果,多种超分算法可选。
G
grasswolfs 已提交
54
- 黑白图片上色,可用于老旧照片修复,
G
grasswolfs 已提交
55
<div align="center">
G
grasswolfs 已提交
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
<table>
    <thead>
    </thead>
    <tbody>
        <tr>
            <th>图像超分辨率 </th>
            <th>黑白图片上色 </th>
        </tr>
        <tr>
            <th>
            <a>
            <img src="./docs/imgs/Readme_Related/ImageEdit_SuperResolution.gif"  width = "266" height = "400" /></a><br>
            </th>
            <th>
            <a>
            <img src="./docs/imgs/Readme_Related/ImageEdit_Restoration.gif"  width = "300" height = "400" /></a><br>
            </th>
        </tr>
    </tbody>
</table>
G
grasswolfs 已提交
76
</div>
G
grasswolfs 已提交
77 78 79 80


### 目标检测
- 包含行人检测、车辆检测,更有工业级超大规模预训练模型可选。
G
grasswolfs 已提交
81
<div align="center">
G
grasswolfs 已提交
82
<img src="./docs/imgs/Readme_Related/Image_ObjectDetection_Pedestrian_Vehicle.gif"  width = "642" height = "400" />
G
grasswolfs 已提交
83
</div>
G
grasswolfs 已提交
84 85 86

### 关键点检测
- 包含单人、多人身体关键点检测、面部关键点检测、手部关键点检测。
G
grasswolfs 已提交
87
<div align="center">
G
grasswolfs 已提交
88
<img src="./docs/imgs/Readme_Related/Image_keypoint.gif"  width = "458" height = "400" />
G
grasswolfs 已提交
89
</div>
G
grasswolfs 已提交
90 91 92

### 图像分割
- 包含效果卓越的人像抠图模型、ACE2P人体解析世界冠军模型
G
grasswolfs 已提交
93
<div align="center">
G
grasswolfs 已提交
94
<img src="./docs/imgs/Readme_Related/ImageSeg_Human.gif"  width = "642" height = "400" />
G
grasswolfs 已提交
95
</div>
G
grasswolfs 已提交
96 97 98

### 图像动漫化
- 包含宫崎骏、新海诚在内的多位漫画家风格迁移,多种算法可选
G
grasswolfs 已提交
99
<div align="center">
G
grasswolfs 已提交
100
<img src="./docs/imgs/Readme_Related/ImageGan_Anime.gif"  width = "532" height = "400" />
G
grasswolfs 已提交
101
</div>
G
grasswolfs 已提交
102 103 104

### 图像分类
- 包含动物分类、菜品分类、野生动物制品分类,多种算法可选
G
grasswolfs 已提交
105
<div align="center">
G
grasswolfs 已提交
106
<img src="./docs/imgs/Readme_Related/ImageClas_animal_dish_wild.gif"  width = "530" height = "400" />
G
grasswolfs 已提交
107
</div>
G
grasswolfs 已提交
108 109

### 词法分析
G
grasswolfs 已提交
110
- 效果优秀的中文分词、词性标注与命名实体识别的模型。
G
grasswolfs 已提交
111
<div align="center">
G
grasswolfs 已提交
112
<img src="./docs/imgs/Readme_Related/Text_Lexical Analysis.png"  width = "640" height = "233" />
G
grasswolfs 已提交
113
</div>
G
grasswolfs 已提交
114 115 116

### 文本生成
- 包含AI写诗、AI对联、AI情话、AI藏头诗,多种算法可选。
G
grasswolfs 已提交
117
<div align="center">
G
grasswolfs 已提交
118
<img src="./docs/imgs/Readme_Related/Text_Textgen_poetry.gif"  width = "850" height = "400" />
G
grasswolfs 已提交
119
</div>
G
grasswolfs 已提交
120 121

### 句法分析
G
grasswolfs 已提交
122
- 效果领先的中文句法分析模型。
G
grasswolfs 已提交
123
<div align="center">
G
grasswolfs 已提交
124
<img src="./docs/imgs/Readme_Related/Text_SyntacticAnalysis.png"  width = "640" height = "301" />
G
grasswolfs 已提交
125
</div>
G
grasswolfs 已提交
126 127 128

### 情感分析
- 支持中文的评论情感分析
G
grasswolfs 已提交
129
<div align="center">
G
grasswolfs 已提交
130
<img src="./docs/imgs/Readme_Related/Text_SentimentAnalysis.png"  width = "640" height = "228" />
G
grasswolfs 已提交
131
</div>
G
grasswolfs 已提交
132 133

### 文本审核
G
grasswolfs 已提交
134
- 包含中文色情文本的审核,多种算法可选。
G
grasswolfs 已提交
135
<div align="center">
G
grasswolfs 已提交
136
<img src="./docs/imgs/Readme_Related/Text_Textreview.png"  width = "640" height = "140" />
G
grasswolfs 已提交
137
</div>
G
grasswolfs 已提交
138 139 140 141 142

### 语音合成
- TTS语音合成算法,多种算法可选
- 输入:`Life was like a box of chocolates, you never know what you're gonna get.`
- 合成效果如下:
G
grasswolfs 已提交
143 144 145 146 147 148 149 150
<div align="center">
<table>
    <thead>
    </thead>
    <tbody>
        <tr>
            <th>deepvoice3 </th>
            <th>fastspeech </th>
G
grasswolfs 已提交
151
            <th>transformer</th>
G
grasswolfs 已提交
152 153 154
        </tr>
        <tr>
            <th>
G
grasswolfs 已提交
155
            <a href="https://paddlehub.bj.bcebos.com/resources/deepvoice3_ljspeech-0.wav">
G
grasswolfs 已提交
156 157 158
            <img src="./docs/imgs/Readme_Related/audio_icon.png" width=250 /></a><br>
            </th>
            <th>
G
grasswolfs 已提交
159
            <a href="https://paddlehub.bj.bcebos.com/resources/fastspeech_ljspeech-0.wav">
G
grasswolfs 已提交
160 161 162
            <img src="./docs/imgs/Readme_Related/audio_icon.png" width=250 /></a><br>
            </th>
            <th>
G
grasswolfs 已提交
163
            <a href="https://paddlehub.bj.bcebos.com/resources/transformer_tts_ljspeech-0.wav">
G
grasswolfs 已提交
164 165 166 167 168 169
            <img src="./docs/imgs/Readme_Related/audio_icon.png" width=250 /></a><br>
            </th>
        </tr>
    </tbody>
</table>
</div>
G
grasswolfs 已提交
170 171

### 视频分类
G
grasswolfs 已提交
172 173
- 包含短视频分类,支持3000+标签种类,可输出TOP-K标签,多种算法可选。
- `举例:输入一段游泳的短视频,算法可以输出"游泳"结果`
G
grasswolfs 已提交
174
<div align="center">
G
grasswolfs 已提交
175
<img src="./docs/imgs/Readme_Related/Text_Video.gif"  width = "400" height = "400" />
G
grasswolfs 已提交
176
</div>
G
grasswolfs 已提交
177

G
grasswolfs 已提交
178 179 180
##  ===划重点===
- 以上所有预训练模型全部开源,模型数量持续更新,欢迎Star关注。
<div align="center">
G
grasswolfs 已提交
181 182
<a href="https://github.com/PaddlePaddle/PaddleHub/stargazers">
            <img src="./docs/imgs/Readme_Related/star.png"  width = "411" height = "100" /></a>  
G
grasswolfs 已提交
183 184
</div>

G
grasswolfs 已提交
185
<a name="欢迎加入PaddleHub技术交流群"></a>
G
grasswolfs 已提交
186
## 欢迎加入PaddleHub技术交流群
G
grasswolfs 已提交
187
- 在使用模型过程中有任何问题,可以加入官方微信群,获得更高效的问题答疑,与各行各业开发者充分交流,期待您的加入。
G
grasswolfs 已提交
188 189 190 191
<div align="center">
<img src="./docs/imgs/joinus.PNG"  width = "200" height = "200" />
</div>  
如扫码失败,请添加微信15711058002,并备注“Hub”,运营同学会邀请您入群。  
W
wuzewu 已提交
192 193


G
grasswolfs 已提交
194
## 文档教程
W
wuzewu 已提交
195 196

- [PIP安装](./docs/installation.md)
G
grasswolfs 已提交
197 198 199 200
- 快速开始
    - [命令行调用](./docs/quick_experience/cmd_quick_run.md)
    - [Python API调用](./docs/quick_experience/python_use_hub.md)
    - [在线运行体验demo【Official】](https://github.com/PaddlePaddle/PaddleHub/tree/release/v1.8/demo)
G
grasswolfs 已提交
201
    - [生态趣味项目demo【ThirdParty】](./docs/quick_experience/more_demos.md)
G
grasswolfs 已提交
202
- 丰富的预训练模型 182 个
G
grasswolfs 已提交
203
    - [精品特色模型](./docs/figure.md)
G
grasswolfs 已提交
204
    - 计算机视觉 126 个
G
grasswolfs 已提交
205 206 207 208 209 210 211 212
      - [图像分类 64 个](./modules/image/classification/README.md)
      - [目标检测 13 个](./modules/image/object_detection/README.md)
      - [人脸检测 7 个](./modules/image/face_detection/README.md)  
      - [关键点检测 3 个](./modules/image/keypoint_detection/README.md)
      - [图像分割 7 个](./modules/image/semantic_segmentation/README.md)
      - [文本识别 8 个](./modules/image/text_recognition/README.md)
      - [图像生成 17 个](./modules/image/Image_gan/README.md)
      - [图像编辑 7 个](./modules/image/Image_editing/README.md)
G
grasswolfs 已提交
213
    - 自然语言处理 48 个
G
grasswolfs 已提交
214 215 216 217 218 219
      - [词法分析 2 个](./modules/text/lexical_analysis/README.md)
      - [句法分析 1 个](./modules/text/syntactic_analysis/README.md)
      - [情感分析 7 个](./modules/text/sentiment_analysis/README.md)
      - [文本审核 3 个](./modules/text/text_review/README.md)
      - [文本生成 9 个](./modules/text/text_generation/README.md)
      - [语义模型 26 个](./modules/text/language_model/README.md)
G
grasswolfs 已提交
220
    - 语音 3 个
G
grasswolfs 已提交
221
      - [语音合成 3 个](./modules/audio/README.md)
G
grasswolfs 已提交
222
    - 视频5个
G
grasswolfs 已提交
223
      - [视频分类 5 个](./modules/video/README.md)
G
grasswolfs 已提交
224
- 部署
G
grasswolfs 已提交
225
    - [本地Inference部署](./docs/quick_experience/python_use_hub.md)
G
grasswolfs 已提交
226
    - [一行代码服务化部署](./docs/tutorial/serving.md)
G
grasswolfs 已提交
227
    - [移动端 Lite 部署(跳转Lite教程)](https://paddle-lite.readthedocs.io/zh/latest/quick_start/tutorial.html)
G
grasswolfs 已提交
228 229 230 231 232
- 进阶文档
    - [命令行工具详解](./docs/tutorial/cmdintro.md)
    - [自定义数据迁移学习](./docs/tutorial/how_to_load_data.md)
    - [模型转module](./docs/tutorial/contri_pretrained_model.md)
    - [文本Embedding任务](./docs/tutorial/bert_service.md)
W
wuzewu 已提交
233 234 235 236
- 社区交流
    - [加入技术交流群](#欢迎加入PaddleHub技术交流群)
    - [贡献预训练模型](./docs/contribution/contri_pretrained_model.md)
    - [贡献代码](./docs/contribution/contri_pr.md)
G
grasswolfs 已提交
237
- [FAQ](./docs/faq.md)  
W
wuzewu 已提交
238 239 240 241
- [更新历史](./docs/release.md)
- [许可证书](#许可证书)
- [致谢](#致谢)

Z
Zeyu Chen 已提交
242

W
wuzewu 已提交
243 244 245
<a name="许可证书"></a>
## 许可证书
本项目的发布受<a href="./LICENSE">Apache 2.0 license</a>许可认证。
W
wuzewu 已提交
246

W
wuzewu 已提交
247 248 249
<a name="致谢"></a>
## 致谢
我们非常欢迎您为PaddleHub贡献代码,也十分感谢您的反馈。
S
Steffy-zxf 已提交
250

W
wuzewu 已提交
251 252 253 254 255 256 257
* 非常感谢[Austendeng](https://github.com/Austendeng)贡献了修复SequenceLabelReader的pr
* 非常感谢[cclauss](https://github.com/cclauss)贡献了优化travis-ci检查的pr
* 非常感谢[奇想天外](http://www.cheerthink.com/)贡献了口罩检测的demo
* 非常感谢[mhlwsk](https://github.com/mhlwsk)贡献了修复序列标注预测demo的pr
* 非常感谢[zbp-xxxp](https://github.com/zbp-xxxp)贡献了看图作诗的module
* 非常感谢[zbp-xxxp](https://github.com/zbp-xxxp)[七年期限](https://github.com/1084667371)联合贡献了看图写诗中秋特别版module
* 非常感谢[livingbody](https://github.com/livingbody)贡献了基于PaddleHub能力的风格迁移和中秋看图写诗微信小程序