400+ AI Models: Rich, high-quality AI models, including CV, NLP, Speech, Video and Cross-Modal. Easy to Use: 3 lines of code to predict 400+ AI models.
See the codeEnglish | 简体中文
🔥2022.08.19: The v2.3.0 version is released 🎉
2022.02.18: Release models to HuggingFace PaddlePaddle Space
For more previous release please refer to PaddleHub Release Note
![]() | ![]() | ![]() |
| Wenxin Big Models | Stable_Diffusion series | Disco Diffusion series |
| Include ERNIE-ViLG, ERNIE-ViL, ERNIE 3.0 Zeus, supports applications such as text-to-image, writing essays, summarization, couplets, question answering, writing novels and completing text。 | Supports functions such as text_to_image, image_to_image, inpainting, ACGN external service, etc. | Support Chinese and English input |
# install paddlepaddle with gpu
# !pip install --upgrade paddlepaddle-gpu
# or install paddlepaddle with cpu
!pip install --upgrade paddlepaddle
# install paddlehub
!pip install --upgrade paddlehub
import paddlehub as hub
lac = hub.Module(name="lac")
test_text = ["今天是个好天气。"]
results = lac.cut(text=test_text, use_gpu=False, batch_size=1, return_tag=True)
print(results)
#{'word': ['今天', '是', '个', '好天气', '。'], 'tag': ['TIME', 'v', 'q', 'n', 'w']}
!hub serving start -m lac
The release of this project is certified by the Apache 2.0 license.
We welcome you to contribute code to PaddleHub, and thank you for your feedback.
(top 30 of 61)
Python
99.9%
400+ AI Models: Rich, high-quality AI models, including CV, NLP, Speech, Video and Cross-Modal. Easy to Use: 3 lines of code to predict 400+ AI models.
See the codeEnglish | 简体中文
🔥2022.08.19: The v2.3.0 version is released 🎉
2022.02.18: Release models to HuggingFace PaddlePaddle Space
For more previous release please refer to PaddleHub Release Note
![]() | ![]() | ![]() |
| Wenxin Big Models | Stable_Diffusion series | Disco Diffusion series |
| Include ERNIE-ViLG, ERNIE-ViL, ERNIE 3.0 Zeus, supports applications such as text-to-image, writing essays, summarization, couplets, question answering, writing novels and completing text。 | Supports functions such as text_to_image, image_to_image, inpainting, ACGN external service, etc. | Support Chinese and English input |
# install paddlepaddle with gpu
# !pip install --upgrade paddlepaddle-gpu
# or install paddlepaddle with cpu
!pip install --upgrade paddlepaddle
# install paddlehub
!pip install --upgrade paddlehub
import paddlehub as hub
lac = hub.Module(name="lac")
test_text = ["今天是个好天气。"]
results = lac.cut(text=test_text, use_gpu=False, batch_size=1, return_tag=True)
print(results)
#{'word': ['今天', '是', '个', '好天气', '。'], 'tag': ['TIME', 'v', 'q', 'n', 'w']}
!hub serving start -m lac
The release of this project is certified by the Apache 2.0 license.
We welcome you to contribute code to PaddleHub, and thank you for your feedback.
(top 30 of 61)
Python
99.9%