Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
book
提交
aafd8a2e
B
book
项目概览
PaddlePaddle
/
book
通知
17
Star
4
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
40
列表
看板
标记
里程碑
合并请求
37
Wiki
5
Wiki
分析
仓库
DevOps
项目成员
Pages
B
book
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
40
Issue
40
列表
看板
标记
里程碑
合并请求
37
合并请求
37
Pages
分析
分析
仓库分析
DevOps
Wiki
5
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
aafd8a2e
编写于
7月 14, 2018
作者:
J
JiabinYang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
delete additional binary file and refine REAME.md
上级
a4979d20
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
6 addition
and
2 deletion
+6
-2
01.fit_a_line/fit_a_line.inference.model/fc_0.b_0
01.fit_a_line/fit_a_line.inference.model/fc_0.b_0
+0
-0
01.fit_a_line/fit_a_line.inference.model/fc_0.w_0
01.fit_a_line/fit_a_line.inference.model/fc_0.w_0
+0
-0
01.fit_a_line/fit_a_line.inference.model/learning_rate_0
01.fit_a_line/fit_a_line.inference.model/learning_rate_0
+0
-0
01.fit_a_line/fit_a_line.inference.model/mean_0.tmp_0@GRAD
01.fit_a_line/fit_a_line.inference.model/mean_0.tmp_0@GRAD
+0
-0
03.image_classification/README.md
03.image_classification/README.md
+3
-1
03.image_classification/index.html
03.image_classification/index.html
+3
-1
未找到文件。
01.fit_a_line/fit_a_line.inference.model/fc_0.b_0
已删除
100644 → 0
浏览文件 @
a4979d20
文件已删除
01.fit_a_line/fit_a_line.inference.model/fc_0.w_0
已删除
100644 → 0
浏览文件 @
a4979d20
文件已删除
01.fit_a_line/fit_a_line.inference.model/learning_rate_0
已删除
100644 → 0
浏览文件 @
a4979d20
文件已删除
01.fit_a_line/fit_a_line.inference.model/mean_0.tmp_0@GRAD
已删除
100644 → 0
浏览文件 @
a4979d20
文件已删除
03.image_classification/README.md
浏览文件 @
aafd8a2e
...
...
@@ -171,6 +171,7 @@ import paddle
import
paddle.fluid
as
fluid
import
numpy
import
sys
from
__future__
import
print_function
```
Now we are going to walk you through the implementations of the VGG and ResNet.
...
...
@@ -514,9 +515,10 @@ Now we are ready to do inference.
inferencer
=
fluid
.
Inferencer
(
infer_func
=
inference_program
,
param_path
=
params_dirname
,
place
=
place
)
label_list
=
[
"airplane"
,
"automobile"
,
"bird"
,
"cat"
,
"deer"
,
"dog"
,
"frog"
,
"horse"
,
"ship"
,
"truck"
]
# inference
results
=
inferencer
.
infer
({
'pixel'
:
img
})
print
(
"infer results:
"
,
results
)
print
(
"infer results:
%s"
%
label_list
[
np
.
argmax
(
results
[
0
])]
)
```
...
...
03.image_classification/index.html
浏览文件 @
aafd8a2e
...
...
@@ -213,6 +213,7 @@ import paddle
import paddle.fluid as fluid
import numpy
import sys
from __future__ import print_function
```
Now we are going to walk you through the implementations of the VGG and ResNet.
...
...
@@ -556,9 +557,10 @@ Now we are ready to do inference.
inferencer = fluid.Inferencer(
infer_func=inference_program, param_path=params_dirname, place=place)
label_list = ["airplane", "automobile", "bird", "cat", "deer", "dog", "frog", "horse", "ship", "truck"]
# inference
results = inferencer.infer({'pixel': img})
print("infer results:
", results
)
print("infer results:
%s" % label_list[np.argmax(results[0])]
)
```
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录