Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleHub
提交
9f8853ab
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看板
未验证
提交
9f8853ab
编写于
6月 28, 2020
作者:
S
Steffy-zxf
提交者:
GitHub
6月 28, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #720 from Steffy-zxf/fix-humanseg
Fix humanseg
上级
79014eca
286b1d9d
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
16 addition
and
16 deletion
+16
-16
hub_module/modules/image/classification/efficientnetb0_imagenet/module.py
...es/image/classification/efficientnetb0_imagenet/module.py
+2
-2
hub_module/modules/image/classification/efficientnetb0_small_imagenet/module.py
...ge/classification/efficientnetb0_small_imagenet/module.py
+2
-2
hub_module/modules/image/classification/efficientnetb1_imagenet/module.py
...es/image/classification/efficientnetb1_imagenet/module.py
+2
-2
hub_module/modules/image/classification/efficientnetb2_imagenet/module.py
...es/image/classification/efficientnetb2_imagenet/module.py
+2
-2
hub_module/modules/image/classification/efficientnetb3_imagenet/module.py
...es/image/classification/efficientnetb3_imagenet/module.py
+2
-2
hub_module/modules/image/classification/efficientnetb4_imagenet/module.py
...es/image/classification/efficientnetb4_imagenet/module.py
+2
-2
hub_module/modules/image/classification/efficientnetb5_imagenet/module.py
...es/image/classification/efficientnetb5_imagenet/module.py
+2
-2
hub_module/modules/image/classification/efficientnetb7_imagenet/module.py
...es/image/classification/efficientnetb7_imagenet/module.py
+2
-2
未找到文件。
hub_module/modules/image/classification/efficientnetb0_imagenet/module.py
浏览文件 @
9f8853ab
...
...
@@ -105,9 +105,9 @@ class EfficientNetB0ImageNet(hub.Module):
context_prog (fluid.Program): program for transfer learning.
"""
if
phase
in
[
"dev"
,
"test"
,
"predict"
,
"eval"
]:
is_test
=
False
elif
phase
in
[
"train"
]:
is_test
=
True
elif
phase
in
[
"train"
]:
is_test
=
False
else
:
raise
ValueError
(
"Phase %s is error, which must be one of train, dev, test, eval and predict."
...
...
hub_module/modules/image/classification/efficientnetb0_small_imagenet/module.py
浏览文件 @
9f8853ab
...
...
@@ -105,9 +105,9 @@ class EfficientNetB0SmallImageNet(hub.Module):
context_prog (fluid.Program): program for transfer learning.
"""
if
phase
in
[
"dev"
,
"test"
,
"predict"
,
"eval"
]:
is_test
=
False
elif
phase
in
[
"train"
]:
is_test
=
True
elif
phase
in
[
"train"
]:
is_test
=
False
else
:
raise
ValueError
(
"Phase %s is error, which must be one of train, dev, test, eval and predict."
...
...
hub_module/modules/image/classification/efficientnetb1_imagenet/module.py
浏览文件 @
9f8853ab
...
...
@@ -108,9 +108,9 @@ class EfficientNetB1ImageNet(hub.Module):
context_prog (fluid.Program): program for transfer learning.
"""
if
phase
in
[
"dev"
,
"test"
,
"predict"
,
"eval"
]:
is_test
=
False
elif
phase
in
[
"train"
]:
is_test
=
True
elif
phase
in
[
"train"
]:
is_test
=
False
else
:
raise
ValueError
(
"Phase %s is error, which must be one of train, dev, test, eval and predict."
...
...
hub_module/modules/image/classification/efficientnetb2_imagenet/module.py
浏览文件 @
9f8853ab
...
...
@@ -105,9 +105,9 @@ class EfficientNetB2ImageNet(hub.Module):
context_prog (fluid.Program): program for transfer learning.
"""
if
phase
in
[
"dev"
,
"test"
,
"predict"
,
"eval"
]:
is_test
=
False
elif
phase
in
[
"train"
]:
is_test
=
True
elif
phase
in
[
"train"
]:
is_test
=
False
else
:
raise
ValueError
(
"Phase %s is error, which must be one of train, dev, test, eval and predict."
...
...
hub_module/modules/image/classification/efficientnetb3_imagenet/module.py
浏览文件 @
9f8853ab
...
...
@@ -105,9 +105,9 @@ class EfficientNetB3ImageNet(hub.Module):
context_prog (fluid.Program): program for transfer learning.
"""
if
phase
in
[
"dev"
,
"test"
,
"predict"
,
"eval"
]:
is_test
=
False
elif
phase
in
[
"train"
]:
is_test
=
True
elif
phase
in
[
"train"
]:
is_test
=
False
else
:
raise
ValueError
(
"Phase %s is error, which must be one of train, dev, test, eval and predict."
...
...
hub_module/modules/image/classification/efficientnetb4_imagenet/module.py
浏览文件 @
9f8853ab
...
...
@@ -105,9 +105,9 @@ class EfficientNetB4ImageNet(hub.Module):
context_prog (fluid.Program): program for transfer learning.
"""
if
phase
in
[
"dev"
,
"test"
,
"predict"
,
"eval"
]:
is_test
=
False
elif
phase
in
[
"train"
]:
is_test
=
True
elif
phase
in
[
"train"
]:
is_test
=
False
else
:
raise
ValueError
(
"Phase %s is error, which must be one of train, dev, test, eval and predict."
...
...
hub_module/modules/image/classification/efficientnetb5_imagenet/module.py
浏览文件 @
9f8853ab
...
...
@@ -76,9 +76,9 @@ class EfficientNetB5ImageNet(hub.Module):
try
:
_places
=
os
.
environ
[
"CUDA_VISIBLE_DEVICES"
]
int
(
_places
[
0
])
use_gpu
=
True
except
:
use_gpu
=
False
except
:
use_gpu
=
True
if
use_gpu
:
gpu_config
=
AnalysisConfig
(
self
.
default_pretrained_model_path
)
gpu_config
.
disable_glog_info
()
...
...
hub_module/modules/image/classification/efficientnetb7_imagenet/module.py
浏览文件 @
9f8853ab
...
...
@@ -105,9 +105,9 @@ class EfficientNetB7ImageNet(hub.Module):
context_prog (fluid.Program): program for transfer learning.
"""
if
phase
in
[
"dev"
,
"test"
,
"predict"
,
"eval"
]:
is_test
=
False
elif
phase
in
[
"train"
]:
is_test
=
True
elif
phase
in
[
"train"
]:
is_test
=
False
else
:
raise
ValueError
(
"Phase %s is error, which must be one of train, dev, test, eval and predict."
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录