Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
VisualDL
提交
1ec54d8d
V
VisualDL
项目概览
PaddlePaddle
/
VisualDL
大约 1 年 前同步成功
通知
86
Star
4655
Fork
641
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
5
Wiki
分析
仓库
DevOps
项目成员
Pages
V
VisualDL
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
5
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
1ec54d8d
编写于
1月 15, 2018
作者:
D
daminglu
提交者:
GitHub
1月 15, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove inception_v1 (#155)
上级
9d65049b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
1 addition
and
46 deletion
+1
-46
visualdl/server/graph_test.py
visualdl/server/graph_test.py
+0
-32
visualdl/server/mock/README.md
visualdl/server/mock/README.md
+1
-3
visualdl/server/mock/download_mock_models.sh
visualdl/server/mock/download_mock_models.sh
+0
-11
未找到文件。
visualdl/server/graph_test.py
浏览文件 @
1ec54d8d
import
json
import
unittest
import
graph
...
...
@@ -39,37 +38,6 @@ class GraphTest(unittest.TestCase):
self
.
assertEqual
(
json_obj
[
'edges'
][
111
][
'target'
],
'fire6/expand3x3_1'
)
self
.
assertEqual
(
json_obj
[
'edges'
][
111
][
'label'
],
'label_111'
)
def
test_graph_edges_inception_v1
(
self
):
json_obj
=
graph
.
to_IR_json
(
self
.
mock_dir
+
'/inception_v1_model.pb'
)
json_obj
=
graph
.
add_edges
(
json_obj
)
# 286 edges + 143 nodes (out-edge of each node is counted twice)
self
.
assertEqual
(
len
(
json_obj
[
'edges'
]),
286
+
143
)
# label_0: (in-edge)
# {u'source': u'data_0', u'target': u'node_0', u'label': u'label_0'}
self
.
assertEqual
(
json_obj
[
'edges'
][
0
][
'source'
],
'data_0'
)
self
.
assertEqual
(
json_obj
[
'edges'
][
0
][
'target'
],
'node_0'
)
self
.
assertEqual
(
json_obj
[
'edges'
][
0
][
'label'
],
'label_0'
)
# label_50: (in-edge)
# {u'source': u'inception_3a/5x5_reduce_2', u'target': u'node_18', u'label': u'label_50'}
self
.
assertEqual
(
json_obj
[
'edges'
][
50
][
'source'
],
'inception_3a/5x5_reduce_2'
)
self
.
assertEqual
(
json_obj
[
'edges'
][
50
][
'target'
],
'node_18'
)
self
.
assertEqual
(
json_obj
[
'edges'
][
50
][
'label'
],
'label_50'
)
# label_100: (out-edge)
# {u'source': u'node_34', u'target': u'inception_3b/pool_1', u'label': u'label_100'}
self
.
assertEqual
(
json_obj
[
'edges'
][
100
][
'source'
],
'node_34'
)
self
.
assertEqual
(
json_obj
[
'edges'
][
100
][
'target'
],
'inception_3b/pool_1'
)
self
.
assertEqual
(
json_obj
[
'edges'
][
100
][
'label'
],
'label_100'
)
# label_420: (out-edge)
# {u'source': u'node_139', u'target': u'pool5/7x7_s1_2', u'label': u'label_420'}
self
.
assertEqual
(
json_obj
[
'edges'
][
420
][
'source'
],
'node_139'
)
self
.
assertEqual
(
json_obj
[
'edges'
][
420
][
'target'
],
'pool5/7x7_s1_2'
)
self
.
assertEqual
(
json_obj
[
'edges'
][
420
][
'label'
],
'label_420'
)
if
__name__
==
'__main__'
:
unittest
.
main
()
visualdl/server/mock/README.md
浏览文件 @
1ec54d8d
## Note
Test data squeezenet
and inception_v1 are
from onnx/models.
Test data squeezenet
is
from onnx/models.
https://github.com/onnx/models
squeezenet has 53 inputs, 66 nodes and 1 output.
inception_v1 has 117 inputs, 143 nodes and 1 output.
\ No newline at end of file
visualdl/server/mock/download_mock_models.sh
浏览文件 @
1ec54d8d
# Download inception_v1 model
curl
-LOk
http://visualdl.bj.bcebos.com/inception_v1.tar.gz
#curl -LOk https://www.dropbox.com/s/twbfdqgvowzy762/inception_v1.tar.gz?dl=0
tar
-xvzf
inception_v1.tar.gz
cp
inception_v1/model.pb inception_v1_model.pb
rm
-rf
inception_v1
rm
inception_v1.tar.gz
# Download squeezenet model
curl
-LOk
http://visualdl.bj.bcebos.com/squeezenet.tar.gz
#curl -LOk https://www.dropbox.com/s/fip3jzxsjf2g6zc/squeezenet.tar.gz?dl=0
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录