Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleHub
提交
32ff186b
P
PaddleHub
项目概览
PaddlePaddle
/
PaddleHub
大约 1 年 前同步成功
通知
281
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
32ff186b
编写于
4月 01, 2019
作者:
W
wuzewu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix reference bug
上级
44aa7b51
变更
15
显示空白变更内容
内联
并排
Showing
15 changed file
with
26 addition
and
26 deletion
+26
-26
paddle_hub/commands/base_command.py
paddle_hub/commands/base_command.py
+1
-1
paddle_hub/commands/download.py
paddle_hub/commands/download.py
+4
-4
paddle_hub/commands/hub.py
paddle_hub/commands/hub.py
+1
-1
paddle_hub/commands/install.py
paddle_hub/commands/install.py
+2
-2
paddle_hub/commands/list.py
paddle_hub/commands/list.py
+3
-3
paddle_hub/commands/run.py
paddle_hub/commands/run.py
+3
-3
paddle_hub/commands/search.py
paddle_hub/commands/search.py
+3
-3
paddle_hub/commands/show.py
paddle_hub/commands/show.py
+1
-1
paddle_hub/commands/uninstall.py
paddle_hub/commands/uninstall.py
+2
-2
paddle_hub/commands/version.py
paddle_hub/commands/version.py
+1
-1
paddle_hub/dataset/base_cv_dataset.py
paddle_hub/dataset/base_cv_dataset.py
+1
-1
paddle_hub/dataset/dogcat.py
paddle_hub/dataset/dogcat.py
+1
-1
paddle_hub/dataset/flowers.py
paddle_hub/dataset/flowers.py
+1
-1
paddle_hub/finetune/config.py
paddle_hub/finetune/config.py
+1
-1
paddle_hub/reader/cv_reader.py
paddle_hub/reader/cv_reader.py
+1
-1
未找到文件。
paddle_hub/commands/base_command.py
浏览文件 @
32ff186b
...
...
@@ -15,7 +15,7 @@
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
from
paddle_hub.
tools
.arg_helper
import
add_argument
,
print_arguments
from
paddle_hub.
common
.arg_helper
import
add_argument
,
print_arguments
import
argparse
ENTRY
=
"hub"
...
...
paddle_hub/commands/download.py
浏览文件 @
32ff186b
...
...
@@ -15,11 +15,11 @@
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
from
paddle_hub.
tools
.logger
import
logger
from
paddle_hub.
common
.logger
import
logger
from
paddle_hub.commands.base_command
import
BaseCommand
,
ENTRY
from
paddle_hub.
tools
import
utils
from
paddle_hub.
tools
.downloader
import
default_downloader
from
paddle_hub.hub_server
import
default_hub_server
from
paddle_hub.
common
import
utils
from
paddle_hub.
common
.downloader
import
default_downloader
from
paddle_hub.
common.
hub_server
import
default_hub_server
import
argparse
...
...
paddle_hub/commands/hub.py
浏览文件 @
32ff186b
...
...
@@ -15,7 +15,7 @@
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
from
paddle_hub.
tools
.logger
import
logger
from
paddle_hub.
common
.logger
import
logger
from
paddle_hub.commands.base_command
import
BaseCommand
from
paddle_hub.commands
import
show
from
paddle_hub.commands
import
help
...
...
paddle_hub/commands/install.py
浏览文件 @
32ff186b
...
...
@@ -17,9 +17,9 @@ from __future__ import print_function
import
argparse
from
paddle_hub.
tools
.logger
import
logger
from
paddle_hub.
common
.logger
import
logger
from
paddle_hub.commands.base_command
import
BaseCommand
,
ENTRY
from
paddle_hub.
tools
import
utils
from
paddle_hub.
common
import
utils
from
paddle_hub.module.manager
import
default_module_manager
...
...
paddle_hub/commands/list.py
浏览文件 @
32ff186b
...
...
@@ -16,10 +16,10 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
print_function
from
paddle_hub.
tools
.logger
import
logger
from
paddle_hub.
common
.logger
import
logger
from
paddle_hub.commands.base_command
import
BaseCommand
from
paddle_hub.
tools
import
utils
from
paddle_hub.
tools
.downloader
import
default_downloader
from
paddle_hub.
common
import
utils
from
paddle_hub.
common
.downloader
import
default_downloader
from
paddle_hub.module.manager
import
default_module_manager
...
...
paddle_hub/commands/run.py
浏览文件 @
32ff186b
...
...
@@ -16,12 +16,12 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
print_function
from
paddle_hub.
tools
.logger
import
logger
from
paddle_hub.
common
.logger
import
logger
from
paddle_hub.commands.base_command
import
BaseCommand
,
ENTRY
from
paddle_hub.io.reader
import
csv_reader
,
yaml_reader
from
paddle_hub.module.manager
import
default_module_manager
from
paddle_hub.
tools
import
utils
from
paddle_hub.
tools
.arg_helper
import
add_argument
,
print_arguments
from
paddle_hub.
common
import
utils
from
paddle_hub.
common
.arg_helper
import
add_argument
,
print_arguments
import
paddle_hub
as
hub
import
argparse
...
...
paddle_hub/commands/search.py
浏览文件 @
32ff186b
...
...
@@ -15,10 +15,10 @@
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
from
paddle_hub.
tools
.logger
import
logger
from
paddle_hub.
common
.logger
import
logger
from
paddle_hub.commands.base_command
import
BaseCommand
,
ENTRY
from
paddle_hub.
tools
import
utils
from
paddle_hub.hub_server
import
default_hub_server
from
paddle_hub.
common
import
utils
from
paddle_hub.
common.
hub_server
import
default_hub_server
import
argparse
...
...
paddle_hub/commands/show.py
浏览文件 @
32ff186b
...
...
@@ -19,7 +19,7 @@ from __future__ import print_function
import
os
import
argparse
from
paddle_hub.
tools
.logger
import
logger
from
paddle_hub.
common
.logger
import
logger
from
paddle_hub.commands.base_command
import
BaseCommand
,
ENTRY
from
paddle_hub.module.manager
import
default_module_manager
from
paddle_hub.module.module
import
Module
...
...
paddle_hub/commands/uninstall.py
浏览文件 @
32ff186b
...
...
@@ -18,9 +18,9 @@ from __future__ import print_function
import
argparse
from
paddle_hub.
tools
.logger
import
logger
from
paddle_hub.
common
.logger
import
logger
from
paddle_hub.commands.base_command
import
BaseCommand
,
ENTRY
from
paddle_hub.
tools
import
utils
from
paddle_hub.
common
import
utils
from
paddle_hub.module.manager
import
default_module_manager
...
...
paddle_hub/commands/version.py
浏览文件 @
32ff186b
...
...
@@ -16,7 +16,7 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
print_function
from
paddle_hub.
tools
.logger
import
logger
from
paddle_hub.
common
.logger
import
logger
from
paddle_hub.commands.base_command
import
BaseCommand
from
paddle_hub
import
version
...
...
paddle_hub/dataset/base_cv_dataset.py
浏览文件 @
32ff186b
...
...
@@ -19,7 +19,7 @@ from __future__ import print_function
import
os
import
paddle_hub
as
hub
from
paddle_hub.
tools
.downloader
import
default_downloader
from
paddle_hub.
common
.downloader
import
default_downloader
class
ImageClassificationDataset
:
...
...
paddle_hub/dataset/dogcat.py
浏览文件 @
32ff186b
...
...
@@ -25,7 +25,7 @@ from paddle_hub.dataset.base_cv_dataset import ImageClassificationDataset
class
DogCatDataset
(
ImageClassificationDataset
):
def
__init__
(
self
):
super
(
DogCatDataset
,
self
).
__init__
()
dataset_path
=
os
.
path
.
join
(
hub
.
dir
.
DATA_HOME
,
"dog-cat"
)
dataset_path
=
os
.
path
.
join
(
hub
.
common
.
dir
.
DATA_HOME
,
"dog-cat"
)
self
.
base_path
=
self
.
_download_dataset
(
dataset_path
=
dataset_path
,
url
=
"https://paddlehub-dataset.bj.bcebos.com/dog-cat.tar.gz"
)
...
...
paddle_hub/dataset/flowers.py
浏览文件 @
32ff186b
...
...
@@ -25,7 +25,7 @@ from paddle_hub.dataset.base_cv_dataset import ImageClassificationDataset
class
FlowersDataset
(
ImageClassificationDataset
):
def
__init__
(
self
):
super
(
FlowersDataset
,
self
).
__init__
()
dataset_path
=
os
.
path
.
join
(
hub
.
dir
.
DATA_HOME
,
"flower_photos"
)
dataset_path
=
os
.
path
.
join
(
hub
.
common
.
dir
.
DATA_HOME
,
"flower_photos"
)
self
.
base_path
=
self
.
_download_dataset
(
dataset_path
=
dataset_path
,
url
=
"https://paddlehub-dataset.bj.bcebos.com/flower_photos.tar.gz"
)
...
...
paddle_hub/finetune/config.py
浏览文件 @
32ff186b
...
...
@@ -102,5 +102,5 @@ class FinetuneConfig(object):
return
self
.
_enable_memory_optim
@
property
def
optimier
(
self
):
def
optimi
z
er
(
self
):
return
self
.
_optimizer
paddle_hub/
dataset
/cv_reader.py
→
paddle_hub/
reader
/cv_reader.py
浏览文件 @
32ff186b
...
...
@@ -57,7 +57,7 @@ class ImageClassificationReader:
elif
phase
==
"test"
:
shuffle
=
False
data
=
self
.
dataset
.
test_data
(
shuffle
)
elif
phase
==
"val
idate
"
:
elif
phase
==
"val
"
or
phase
==
"dev
"
:
shuffle
=
False
data
=
self
.
dataset
.
validate_data
(
shuffle
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录