Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_40195168达庆意
keras
提交
b0f1bb9c
K
keras
项目概览
weixin_40195168达庆意
/
keras
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
keras
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b0f1bb9c
编写于
5月 08, 2018
作者:
F
Francois Chollet
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove potentially misleading warning messages in `applications`.
上级
8e4ddf0f
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
0 addition
and
53 deletion
+0
-53
keras/applications/inception_resnet_v2.py
keras/applications/inception_resnet_v2.py
+0
-10
keras/applications/inception_v3.py
keras/applications/inception_v3.py
+0
-10
keras/applications/resnet50.py
keras/applications/resnet50.py
+0
-11
keras/applications/vgg16.py
keras/applications/vgg16.py
+0
-11
keras/applications/vgg19.py
keras/applications/vgg19.py
+0
-11
未找到文件。
keras/applications/inception_resnet_v2.py
浏览文件 @
b0f1bb9c
...
...
@@ -352,16 +352,6 @@ def InceptionResNetV2(include_top=True,
# Load weights
if
weights
==
'imagenet'
:
if
K
.
image_data_format
()
==
'channels_first'
:
if
K
.
backend
()
==
'tensorflow'
:
warnings
.
warn
(
'You are using the TensorFlow backend, yet you '
'are using the Theano '
'image data format convention '
'(`image_data_format="channels_first"`). '
'For best performance, set '
'`image_data_format="channels_last"` in '
'your Keras config '
'at ~/.keras/keras.json.'
)
if
include_top
:
fname
=
'inception_resnet_v2_weights_tf_dim_ordering_tf_kernels.h5'
weights_path
=
get_file
(
fname
,
...
...
keras/applications/inception_v3.py
浏览文件 @
b0f1bb9c
...
...
@@ -366,16 +366,6 @@ def InceptionV3(include_top=True,
# load weights
if
weights
==
'imagenet'
:
if
K
.
image_data_format
()
==
'channels_first'
:
if
K
.
backend
()
==
'tensorflow'
:
warnings
.
warn
(
'You are using the TensorFlow backend, yet you '
'are using the Theano '
'image data format convention '
'(`image_data_format="channels_first"`). '
'For best performance, set '
'`image_data_format="channels_last"` in '
'your Keras config '
'at ~/.keras/keras.json.'
)
if
include_top
:
weights_path
=
get_file
(
'inception_v3_weights_tf_dim_ordering_tf_kernels.h5'
,
...
...
keras/applications/resnet50.py
浏览文件 @
b0f1bb9c
...
...
@@ -273,17 +273,6 @@ def ResNet50(include_top=True, weights='imagenet',
model
.
load_weights
(
weights_path
)
if
K
.
backend
()
==
'theano'
:
layer_utils
.
convert_all_kernels_in_model
(
model
)
if
(
K
.
image_data_format
()
==
'channels_first'
and
K
.
backend
()
==
'tensorflow'
):
warnings
.
warn
(
'You are using the TensorFlow backend, yet you '
'are using the Theano '
'image data format convention '
'(`image_data_format="channels_first"`). '
'For best performance, set '
'`image_data_format="channels_last"` in '
'your Keras config '
'at `~/.keras/keras.json`.'
)
elif
weights
is
not
None
:
model
.
load_weights
(
weights
)
...
...
keras/applications/vgg16.py
浏览文件 @
b0f1bb9c
...
...
@@ -178,17 +178,6 @@ def VGG16(include_top=True, weights='imagenet',
model
.
load_weights
(
weights_path
)
if
K
.
backend
()
==
'theano'
:
layer_utils
.
convert_all_kernels_in_model
(
model
)
if
(
K
.
image_data_format
()
==
'channels_first'
and
K
.
backend
()
==
'tensorflow'
):
warnings
.
warn
(
'You are using the TensorFlow backend, yet you '
'are using the Theano '
'image data format convention '
'(`image_data_format="channels_first"`). '
'For best performance, set '
'`image_data_format="channels_last"` in '
'your Keras config '
'at `~/.keras/keras.json`.'
)
elif
weights
is
not
None
:
model
.
load_weights
(
weights
)
...
...
keras/applications/vgg19.py
浏览文件 @
b0f1bb9c
...
...
@@ -181,17 +181,6 @@ def VGG19(include_top=True, weights='imagenet',
model
.
load_weights
(
weights_path
)
if
K
.
backend
()
==
'theano'
:
layer_utils
.
convert_all_kernels_in_model
(
model
)
if
(
K
.
image_data_format
()
==
'channels_first'
and
K
.
backend
()
==
'tensorflow'
):
warnings
.
warn
(
'You are using the TensorFlow backend, yet you '
'are using the Theano '
'image data format convention '
'(`image_data_format="channels_first"`). '
'For best performance, set '
'`image_data_format="channels_last"` in '
'your Keras config '
'at `~/.keras/keras.json`.'
)
elif
weights
is
not
None
:
model
.
load_weights
(
weights
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录