load¶
- paddle.hub. load ( repo_dir, model, source='github', force_reload=False, **kwargs ) [source]
-
Load model
- Parameters
-
repo_dir (str) –
github or local path.
github path (str): a str with format “repo_owner/repo_name[:tag_name]” with an optional tag/branch. The default branch is main if not specified.
local path (str): local repo path.
model (str) – model name.
source (str) – github | gitee | local, default is github.
force_reload (bool, optional) – default is False.
**kwargs – parameters using for model
- Returns
-
paddle model
Example
import paddle paddle.hub.load('lyuwenyu/paddlehub_demo:main', model='MM', source='github')