PaddleFormers  by PaddlePaddle

Pre-trained model toolkit for multimodal AI workflows

Created 6 years ago
12,919 stars

Top 3.9% on SourcePulse

GitHubView on GitHub
Project Summary

PaddleHub is a comprehensive toolkit offering over 400 pre-trained AI models for computer vision, natural language processing, speech, video, and cross-modal tasks. It targets developers and researchers seeking easy integration of advanced AI capabilities into their applications, enabling rapid prototyping and deployment with minimal code.

How It Works

PaddleHub leverages the PaddlePaddle deep learning framework to provide a unified interface for accessing and utilizing a vast array of pre-trained models. Its design emphasizes ease of use, allowing users to load and run models with just a few lines of Python code. The toolkit also supports serving models as services with a single command, simplifying deployment.

Quick Start & Requirements

  • Install PaddlePaddle (CPU or GPU version) and PaddleHub via pip:
    pip install --upgrade paddlepaddle-gpu # or paddlepaddle
    pip install --upgrade paddlehub
    
  • Example usage for Chinese word segmentation (LAC module):
    import paddlehub as hub
    lac = hub.Module(name="lac")
    results = lac.cut(text=["今天是个好天气。"], use_gpu=False, batch_size=1, return_tag=True)
    print(results)
    
  • Serving a model: !hub serving start -m lac
  • Official resources: Quick Start, Model List, Demos

Highlighted Details

  • Supports 400+ AI models across CV, NLP, Speech, Video, and Cross-Modal domains.
  • Features easy-to-use APIs for inference and model serving.
  • Includes recent additions like ERNIE-ViLG, Disco Diffusion, and Stable Diffusion for text-to-image generation.
  • Cross-platform compatibility (Linux, Windows, MacOS).

Maintenance & Community

The project has active contributions and maintains a WeChat technical group for user support. Recent updates include version 2.3.0 and releases to HuggingFace Spaces.

Licensing & Compatibility

Licensed under Apache 2.0, permitting commercial use and integration with closed-source projects.

Limitations & Caveats

While PaddleHub offers a broad range of models, the quality and performance can vary. Specific model requirements (e.g., GPU, CUDA versions) are not always explicitly detailed for every module, requiring users to consult individual model documentation.

Health Check
Last Commit

14 hours ago

Responsiveness

1 day

Pull Requests (30d)
184
Issues (30d)
2
Star History
15 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.