paddle.hub. load ( repo_dir, model, source='github', force_reload=False, **kwargs ) [source]

Load model

  • repo_dir (str) –

    github or local path github path (str): a str with format “repo_owner/repo_name[:tag_name]” with an optional

    System Message: ERROR/3 (/usr/local/lib/python3.8/site-packages/paddle/hapi/hub.py:docstring of paddle.hapi.hub.load, line 5)

    Unexpected indentation.

    tag/branch. The default branch is main if not specified.

    System Message: WARNING/2 (/usr/local/lib/python3.8/site-packages/paddle/hapi/hub.py:docstring of paddle.hapi.hub.load, line 6)

    Block quote ends without a blank line; unexpected unindent.

    local path (str): local repo path

  • model (str) – model name

  • source (str) – github | gitee | local, default is github

  • force_reload (bool, optional) –

  • **kwargs – parameters using for model


paddle model


`python import paddle paddle.hub.load('lyuwenyu/paddlehub_demo:main', model='MM', source='github') `