Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
VisualDL
提交
742dc61a
V
VisualDL
项目概览
PaddlePaddle
/
VisualDL
大约 1 年 前同步成功
通知
88
Star
4655
Fork
642
代码
文件
提交
分支
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看板
提交
742dc61a
编写于
11月 24, 2017
作者:
S
superjom
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' of github.com:VisualDL/VisualDL into feature/refactor_storage_interface
上级
429c35b8
341a322b
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
54 addition
and
30 deletion
+54
-30
README.md
README.md
+22
-1
bin/visual_dl.py
bin/visual_dl.py
+20
-7
docs/backend_architecture.md
docs/backend_architecture.md
+0
-1
docs/data_structure.md
docs/data_structure.md
+1
-1
docs/visualization.md
docs/visualization.md
+1
-1
setup.py
setup.py
+8
-10
visualdl/__init__.py
visualdl/__init__.py
+1
-3
visualdl/backend/test.py
visualdl/backend/test.py
+1
-5
visualdl/frontend/src/index.js
visualdl/frontend/src/index.js
+0
-1
未找到文件。
README.md
浏览文件 @
742dc61a
# VisualDL
\ No newline at end of file
# VisualDL
### How to use
#### Step 1: build and install Python package
```
shell
python setup.py bdist_wheel
cd
dist
pip
install
visualdl-0.0.1-py2-none-any.whl
```
#### Step 2: build frontend
```
shell
cd
visualdl/frontend
npm
install
npm run build
```
### Step 3: run
```
python bin/visual_dl.py --port=8888
```
bin/visual_dl.py
浏览文件 @
742dc61a
""" entry point of visual_dl
"""
import
json
import
os
import
sys
from
optparse
import
OptionParser
from
flask
import
Flask
from
flask
import
request
from
flask
import
Flask
,
redirect
from
flask
import
send_from_directory
from
visualdl.log
import
logger
app
=
Flask
(
__name__
)
app
=
Flask
(
__name__
,
static_url_path
=
""
)
def
option_parser
():
...
...
@@ -44,12 +46,23 @@ def gen_result(status, msg):
return
result
@
app
.
route
(
'/'
)
server_path
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
sys
.
argv
[
0
]))
static_file_path
=
"../visualdl/frontend/dist/"
@
app
.
route
(
'/static/<path:filename>'
)
def
serve_static
(
filename
):
return
send_from_directory
(
os
.
path
.
join
(
server_path
,
static_file_path
),
filename
)
@
app
.
route
(
"/"
)
def
index
():
"""
return
redirect
(
'/static/index.html'
,
code
=
302
)
:return:
"""
@
app
.
route
(
'/hello'
)
def
hello
():
result
=
gen_result
(
0
,
"Hello, this is VisualDL!"
)
return
json
.
dumps
(
result
)
...
...
docs/backend_architecture.md
浏览文件 @
742dc61a
...
...
@@ -48,4 +48,3 @@ IM 与 Server 的关系是
### Protobuf API
-
决定了底层的数据格式,protobuf 提供了序列化的公共界面
-
SDK通过Protobuf API操作底层数据
docs/data_structure.md
浏览文件 @
742dc61a
...
...
@@ -159,7 +159,7 @@ histogram 需要得到tensor的分布,因此会把完整的tensor 的数值存
]
```
## graph
## graph
graph 会复杂一些,可能无法借用上述类型
```
javascript
...
...
docs/visualization.md
浏览文件 @
742dc61a
...
...
@@ -6,4 +6,4 @@
# 前端增量
# 前端采样
\ No newline at end of file
# 前端采样
setup.py
浏览文件 @
742dc61a
from
setuptools
import
setup
setup
(
name
=
"visualdl"
,
version
=
"0.0.1"
,
packages
=
[
'visualdl'
],
include_package_data
=
True
,
install_requires
=
[
'flask>=0.12.1'
],
url
=
'http://www.baidu.com/'
,
license
=
'Apache 2.0'
,
)
setup
(
name
=
"visualdl"
,
version
=
"0.0.1"
,
packages
=
[
'visualdl'
],
include_package_data
=
True
,
install_requires
=
[
'flask>=0.12.1'
],
url
=
'http://www.baidu.com/'
,
license
=
'Apache 2.0'
,
)
visualdl/__init__.py
浏览文件 @
742dc61a
import
log
__all__
=
[
'log'
]
__all__
=
[
'log'
]
visualdl/backend/test.py
浏览文件 @
742dc61a
...
...
@@ -46,11 +46,7 @@ class TabletTester(unittest.TestCase):
scalar
=
self
.
tablet
.
as_float_scalar
()
py_captions
=
[
"train"
,
"test"
]
step_ids
=
[
10
,
20
,
30
]
py_records
=
[
[
0.1
,
0.2
],
[
0.2
,
0.3
],
[
0.3
,
0.4
]
]
py_records
=
[[
0.1
,
0.2
],
[
0.2
,
0.3
],
[
0.3
,
0.4
]]
scalar
.
set_captions
(
py_captions
)
for
i
in
range
(
len
(
py_records
)):
...
...
visualdl/frontend/src/index.js
浏览文件 @
742dc61a
...
...
@@ -6,4 +6,3 @@ new App({
titleName
:
'
VisualDL
'
}
}).
attach
(
document
.
getElementById
(
'
root
'
));
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录