Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleHub
提交
61f96444
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看板
提交
61f96444
编写于
4月 11, 2019
作者:
W
wuzewu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
All classes inherit from object
上级
65d4e626
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
13 addition
and
13 deletion
+13
-13
paddlehub/commands/base_command.py
paddlehub/commands/base_command.py
+1
-1
paddlehub/commands/cml_utils.py
paddlehub/commands/cml_utils.py
+1
-1
paddlehub/common/downloader.py
paddlehub/common/downloader.py
+1
-1
paddlehub/common/hub_server.py
paddlehub/common/hub_server.py
+1
-1
paddlehub/dataset/base_cv_dataset.py
paddlehub/dataset/base_cv_dataset.py
+1
-1
paddlehub/io/parser.py
paddlehub/io/parser.py
+3
-3
paddlehub/module/base_processor.py
paddlehub/module/base_processor.py
+1
-1
paddlehub/module/checker.py
paddlehub/module/checker.py
+1
-1
paddlehub/module/manager.py
paddlehub/module/manager.py
+1
-1
paddlehub/module/signature.py
paddlehub/module/signature.py
+1
-1
paddlehub/reader/cv_reader.py
paddlehub/reader/cv_reader.py
+1
-1
未找到文件。
paddlehub/commands/base_command.py
浏览文件 @
61f96444
...
@@ -23,7 +23,7 @@ from paddlehub.common.arg_helper import add_argument, print_arguments
...
@@ -23,7 +23,7 @@ from paddlehub.common.arg_helper import add_argument, print_arguments
ENTRY
=
"hub"
ENTRY
=
"hub"
class
BaseCommand
:
class
BaseCommand
(
object
)
:
command_dict
=
{}
command_dict
=
{}
@
classmethod
@
classmethod
...
...
paddlehub/commands/cml_utils.py
浏览文件 @
61f96444
...
@@ -61,7 +61,7 @@ def get_ph_value():
...
@@ -61,7 +61,7 @@ def get_ph_value():
return
11
return
11
class
TablePrinter
:
class
TablePrinter
(
object
)
:
def
__init__
(
self
,
def
__init__
(
self
,
titles
,
titles
,
placeholders
,
placeholders
,
...
...
paddlehub/common/downloader.py
浏览文件 @
61f96444
...
@@ -45,7 +45,7 @@ def progress(str, end=False):
...
@@ -45,7 +45,7 @@ def progress(str, end=False):
sys
.
stdout
.
flush
()
sys
.
stdout
.
flush
()
class
Downloader
:
class
Downloader
(
object
)
:
def
download_file
(
self
,
def
download_file
(
self
,
url
,
url
,
save_path
,
save_path
,
...
...
paddlehub/common/hub_server.py
浏览文件 @
61f96444
...
@@ -29,7 +29,7 @@ RESOURCE_LIST_FILE = "resource_list_file.yml"
...
@@ -29,7 +29,7 @@ RESOURCE_LIST_FILE = "resource_list_file.yml"
CACHE_TIME
=
60
*
10
CACHE_TIME
=
60
*
10
class
HubServer
:
class
HubServer
(
object
)
:
def
__init__
(
self
,
server_url
=
None
):
def
__init__
(
self
,
server_url
=
None
):
if
not
server_url
:
if
not
server_url
:
server_url
=
"https://paddlehub.bj.bcebos.com/"
server_url
=
"https://paddlehub.bj.bcebos.com/"
...
...
paddlehub/dataset/base_cv_dataset.py
浏览文件 @
61f96444
...
@@ -22,7 +22,7 @@ import paddlehub as hub
...
@@ -22,7 +22,7 @@ import paddlehub as hub
from
paddlehub.common.downloader
import
default_downloader
from
paddlehub.common.downloader
import
default_downloader
class
ImageClassificationDataset
:
class
ImageClassificationDataset
(
object
)
:
def
__init__
(
self
):
def
__init__
(
self
):
self
.
base_path
=
None
self
.
base_path
=
None
self
.
train_list_file
=
None
self
.
train_list_file
=
None
...
...
paddlehub/io/parser.py
浏览文件 @
61f96444
...
@@ -19,7 +19,7 @@ from __future__ import print_function
...
@@ -19,7 +19,7 @@ from __future__ import print_function
import
yaml
import
yaml
class
CSVFileParser
:
class
CSVFileParser
(
object
)
:
def
__init__
(
self
):
def
__init__
(
self
):
pass
pass
...
@@ -46,7 +46,7 @@ class CSVFileParser:
...
@@ -46,7 +46,7 @@ class CSVFileParser:
return
self
.
content
return
self
.
content
class
YAMLFileParser
:
class
YAMLFileParser
(
object
)
:
def
__init__
(
self
):
def
__init__
(
self
):
pass
pass
...
@@ -59,7 +59,7 @@ class YAMLFileParser:
...
@@ -59,7 +59,7 @@ class YAMLFileParser:
return
yaml
.
load
(
content
,
Loader
=
yaml
.
BaseLoader
)
return
yaml
.
load
(
content
,
Loader
=
yaml
.
BaseLoader
)
class
TextFileParser
:
class
TextFileParser
(
object
)
:
def
__init__
(
self
):
def
__init__
(
self
):
pass
pass
...
...
paddlehub/module/base_processor.py
浏览文件 @
61f96444
...
@@ -17,7 +17,7 @@ from __future__ import division
...
@@ -17,7 +17,7 @@ from __future__ import division
from
__future__
import
print_function
from
__future__
import
print_function
class
BaseProcessor
:
class
BaseProcessor
(
object
)
:
def
__init__
(
self
,
module
):
def
__init__
(
self
,
module
):
pass
pass
...
...
paddlehub/module/checker.py
浏览文件 @
61f96444
...
@@ -29,7 +29,7 @@ CHECK_INFO_PB_FILENAME = "check_info.pb"
...
@@ -29,7 +29,7 @@ CHECK_INFO_PB_FILENAME = "check_info.pb"
FILE_SEP
=
"/"
FILE_SEP
=
"/"
class
ModuleChecker
:
class
ModuleChecker
(
object
)
:
def
__init__
(
self
,
module_path
):
def
__init__
(
self
,
module_path
):
self
.
module_path
=
module_path
self
.
module_path
=
module_path
...
...
paddlehub/module/manager.py
浏览文件 @
61f96444
...
@@ -25,7 +25,7 @@ from paddlehub.common.dir import MODULE_HOME
...
@@ -25,7 +25,7 @@ from paddlehub.common.dir import MODULE_HOME
import
paddlehub
as
hub
import
paddlehub
as
hub
class
LocalModuleManager
:
class
LocalModuleManager
(
object
)
:
def
__init__
(
self
,
module_home
=
None
):
def
__init__
(
self
,
module_home
=
None
):
self
.
local_modules_dir
=
module_home
if
module_home
else
MODULE_HOME
self
.
local_modules_dir
=
module_home
if
module_home
else
MODULE_HOME
self
.
modules_dict
=
{}
self
.
modules_dict
=
{}
...
...
paddlehub/module/signature.py
浏览文件 @
61f96444
...
@@ -21,7 +21,7 @@ from paddle.fluid.framework import Variable
...
@@ -21,7 +21,7 @@ from paddle.fluid.framework import Variable
from
paddlehub.common.utils
import
to_list
from
paddlehub.common.utils
import
to_list
class
Signature
:
class
Signature
(
object
)
:
def
__init__
(
self
,
def
__init__
(
self
,
name
,
name
,
inputs
,
inputs
,
...
...
paddlehub/reader/cv_reader.py
浏览文件 @
61f96444
...
@@ -32,7 +32,7 @@ color_mode_dict = {
...
@@ -32,7 +32,7 @@ color_mode_dict = {
}
}
class
ImageClassificationReader
:
class
ImageClassificationReader
(
object
)
:
def
__init__
(
self
,
def
__init__
(
self
,
image_width
,
image_width
,
image_height
,
image_height
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录