Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleHub
提交
e0de0d86
P
PaddleHub
项目概览
PaddlePaddle
/
PaddleHub
大约 1 年 前同步成功
通知
282
Star
12117
Fork
2091
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
200
列表
看板
标记
里程碑
合并请求
4
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleHub
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
200
Issue
200
列表
看板
标记
里程碑
合并请求
4
合并请求
4
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e0de0d86
编写于
4月 03, 2019
作者:
Z
Zeyu Chen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update cli help hint
上级
37ed4ebb
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
8 addition
and
8 deletion
+8
-8
paddlehub/commands/download.py
paddlehub/commands/download.py
+1
-1
paddlehub/commands/install.py
paddlehub/commands/install.py
+1
-1
paddlehub/commands/list.py
paddlehub/commands/list.py
+1
-1
paddlehub/commands/search.py
paddlehub/commands/search.py
+2
-2
paddlehub/commands/show.py
paddlehub/commands/show.py
+1
-1
paddlehub/commands/uninstall.py
paddlehub/commands/uninstall.py
+1
-1
paddlehub/commands/version.py
paddlehub/commands/version.py
+1
-1
未找到文件。
paddlehub/commands/download.py
浏览文件 @
e0de0d86
...
...
@@ -31,7 +31,7 @@ class DownloadCommand(BaseCommand):
def
__init__
(
self
,
name
):
super
(
DownloadCommand
,
self
).
__init__
(
name
)
self
.
show_in_help
=
True
self
.
description
=
"Download
a baidu NLP model
."
self
.
description
=
"Download
PaddlePaddle pretrained model files
."
self
.
parser
=
self
.
parser
=
argparse
.
ArgumentParser
(
description
=
self
.
__class__
.
__doc__
,
prog
=
'%s %s <module_name>'
%
(
ENTRY
,
name
),
...
...
paddlehub/commands/install.py
浏览文件 @
e0de0d86
...
...
@@ -29,7 +29,7 @@ class InstallCommand(BaseCommand):
def
__init__
(
self
,
name
):
super
(
InstallCommand
,
self
).
__init__
(
name
)
self
.
show_in_help
=
True
self
.
description
=
"Install
the specific module to current environment
."
self
.
description
=
"Install
PaddleHub module
."
self
.
parser
=
self
.
parser
=
argparse
.
ArgumentParser
(
description
=
self
.
__class__
.
__doc__
,
prog
=
'%s %s <module_name>'
%
(
ENTRY
,
name
),
...
...
paddlehub/commands/list.py
浏览文件 @
e0de0d86
...
...
@@ -29,7 +29,7 @@ class ListCommand(BaseCommand):
def
__init__
(
self
,
name
):
super
(
ListCommand
,
self
).
__init__
(
name
)
self
.
show_in_help
=
True
self
.
description
=
"List all
modules install in current environment
."
self
.
description
=
"List all
installed PaddleHub modules
."
def
exec
(
self
,
argv
):
all_modules
=
default_module_manager
.
all_modules
()
...
...
paddlehub/commands/search.py
浏览文件 @
e0de0d86
...
...
@@ -30,7 +30,7 @@ class SearchCommand(BaseCommand):
def
__init__
(
self
,
name
):
super
(
SearchCommand
,
self
).
__init__
(
name
)
self
.
show_in_help
=
True
self
.
description
=
"Search
a paddle hub module with keyword.
"
self
.
description
=
"Search
PaddleHub pretrained model through model keywords
"
self
.
parser
=
self
.
parser
=
argparse
.
ArgumentParser
(
description
=
self
.
__class__
.
__doc__
,
prog
=
'%s %s <key>'
%
(
ENTRY
,
name
),
...
...
@@ -39,7 +39,7 @@ class SearchCommand(BaseCommand):
def
exec
(
self
,
argv
):
if
not
argv
:
print
(
"ERROR: Please specify
a key
\n
"
)
print
(
"ERROR: Please specify
module name.
\n
"
)
self
.
help
()
return
False
...
...
paddlehub/commands/show.py
浏览文件 @
e0de0d86
...
...
@@ -32,7 +32,7 @@ class ShowCommand(BaseCommand):
def
__init__
(
self
,
name
):
super
(
ShowCommand
,
self
).
__init__
(
name
)
self
.
show_in_help
=
True
self
.
description
=
"Show the
specify module's info
."
self
.
description
=
"Show the
information of PaddleHub module
."
self
.
parser
=
self
.
parser
=
argparse
.
ArgumentParser
(
description
=
self
.
__class__
.
__doc__
,
prog
=
'%s %s <module_name/module_dir>'
%
(
ENTRY
,
name
),
...
...
paddlehub/commands/uninstall.py
浏览文件 @
e0de0d86
...
...
@@ -30,7 +30,7 @@ class UninstallCommand(BaseCommand):
def
__init__
(
self
,
name
):
super
(
UninstallCommand
,
self
).
__init__
(
name
)
self
.
show_in_help
=
True
self
.
description
=
"Uninstall
the specific module from current environment
."
self
.
description
=
"Uninstall
PaddleHub module
."
self
.
parser
=
self
.
parser
=
argparse
.
ArgumentParser
(
description
=
self
.
__class__
.
__doc__
,
prog
=
'%s %s <module_name>'
%
(
ENTRY
,
name
),
...
...
paddlehub/commands/version.py
浏览文件 @
e0de0d86
...
...
@@ -27,7 +27,7 @@ class VersionCommand(BaseCommand):
def
__init__
(
self
,
name
):
super
(
VersionCommand
,
self
).
__init__
(
name
)
self
.
show_in_help
=
True
self
.
description
=
"
Get the paddle hub
version."
self
.
description
=
"
Show PaddleHub's
version."
def
exec
(
self
,
argv
):
print
(
"hub %s"
%
version
.
hub_version
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录