diff --git a/Dockerfile.demo b/Dockerfile.demo index e3a1f6165d0521afec3b5df61c8931492361e9f6..70812d88161153894ff528c5657914d74eca807e 100644 --- a/Dockerfile.demo +++ b/Dockerfile.demo @@ -5,4 +5,4 @@ WORKDIR / COPY ./demo/vdl_create_scratch_log vdl_create_scratch_log RUN python /vdl_create_scratch_log -ENTRYPOINT ["visualDL", "--logdir=/scratch_log"] \ No newline at end of file +ENTRYPOINT ["visualdl", "--logdir=/scratch_log"] \ No newline at end of file diff --git a/README.cn.md b/README.cn.md index 1b8d4deb4c767a0f59194b0f7e1805837f5f1f14..b74e9285aaac608ec52ac3ee98ada70bbd80a9bc 100644 --- a/README.cn.md +++ b/README.cn.md @@ -62,7 +62,7 @@ pip install --upgrade visualdl # 运行一个例子,vdl_create_scratch_log 将创建测试日志 vdl_create_scratch_log -visualDL --logdir=scratch_log --port=8080 +visualdl --logdir=scratch_log --port=8080 # 访问 http://127.0.0.1:8080 ``` @@ -104,7 +104,7 @@ pip install --upgrade visualdl # 运行一个例子,vdl_create_scratch_log 将创建测试日志 vdl_create_scratch_log -visualDL --logdir=scratch_log --port=8080 +visualdl --logdir=scratch_log --port=8080 # 访问 http://127.0.0.1:8080 ``` @@ -136,7 +136,7 @@ pip install --upgrade visualdl # 运行一个例子,vdl_create_scratch_log 将创建测试日志 vdl_create_scratch_log -visualDL --logdir=scratch_log --port=8080 +visualdl --logdir=scratch_log --port=8080 # 访问 http://127.0.0.1:8080 ``` @@ -212,7 +212,7 @@ int main() { 当训练过程中已经产生了日志数据,就可以启动board进行实时预览可视化信息 ``` -visualDL --logdir +visualdl --logdir ``` board 还支持一下参数来实现远程的访问: diff --git a/README.md b/README.md index 0b0ec30cc43ebdca1d67fa9b917add8bd25c3f69..ebed2a17c2269d879c128a3b2b3fd309b7463bca 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ pip install --upgrade visualdl # run a demo, vdl_create_scratch_log will create logs for testing. vdl_create_scratch_log -visualDL --logdir=scratch_log --port=8080 +visualdl --logdir=scratch_log --port=8080 # visit http://127.0.0.1:8080 ``` @@ -145,7 +145,7 @@ pip install --upgrade visualdl # run a demo, vdl_create_scratch_log will create logs for testing. vdl_create_scratch_log -visualDL --logdir=scratch_log --port=8080 +visualdl --logdir=scratch_log --port=8080 # visit http://127.0.0.1:8080 ``` @@ -226,7 +226,7 @@ After some logs have been generated during training, users can launch Visual DL ``` -visualDL --logdir +visualdl --logdir ``` visualDL also supports following optional parameters: diff --git a/demo/mxnet/TUTORIAL_CN.md b/demo/mxnet/TUTORIAL_CN.md index d9cec10fda4b9da9e9fa5512199298bd709bc8c5..70de1b3b9a682920b4ccb39ab1ef86a73ce5bdcd 100644 --- a/demo/mxnet/TUTORIAL_CN.md +++ b/demo/mxnet/TUTORIAL_CN.md @@ -69,7 +69,7 @@ VisualDL的一个优点是能可视化深度学习模型,帮助用户更直观 VisualDL的使用很简单,在完成安装后只需要把模型文件(protobuf格式)用参数 -m 提供给VisualDL即可。 ```bash -visualDL --logdir=/workspace -m /workspace/super_resolution_mnist.onnx --port=8888 +visualdl --logdir=/workspace -m /workspace/super_resolution_mnist.onnx --port=8888 ``` 模型图的效果如下: diff --git a/demo/mxnet/TUTORIAL_EN.md b/demo/mxnet/TUTORIAL_EN.md index 34aae9315f2b337d9570d628289855b0efd9e524..73e13751388be5765184f8529102bbaed9e3845c 100644 --- a/demo/mxnet/TUTORIAL_EN.md +++ b/demo/mxnet/TUTORIAL_EN.md @@ -74,7 +74,7 @@ Here we use the existing model that has been transformed from MXNet to ONNX, [Su To display the model graph via VisualDL, pass the model file path with the parameter -m to the VisualDL ```bash -visualDL --logdir=/workspace -m /workspace/super_resolution_mnist.onnx --port=8888 +visualdl --logdir=/workspace -m /workspace/super_resolution_mnist.onnx --port=8888 ``` The model graph is as follows: diff --git a/demo/pytorch/embedding_tutorial_ch.md b/demo/pytorch/embedding_tutorial_ch.md index 7ff85120038cdb9152dead729460a17b3af0ca19..db379448e54c7dd63aa9eb7cfca1442a3733d329 100644 --- a/demo/pytorch/embedding_tutorial_ch.md +++ b/demo/pytorch/embedding_tutorial_ch.md @@ -121,7 +121,7 @@ embedding.add_embeddings_with_word_dict(embeddings_list, word_to_ix) 将上述代码嵌入到您的embedding训练程序中, 这将 embedding 和 word_dict 保存到 `./embedding_log` 文件夹中。 -现在我们可以用 `visualDL --logdir=./embedding_log` 执行VisualDL, +现在我们可以用 `visualdl --logdir=./embedding_log` 执行VisualDL, 使用浏览器导航到 `localhost:8080`,切换到 `High Dimensional` 。 你可以下载教程代码 [这里](https://github.com/PaddlePaddle/VisualDL/blob/develop/demo/pytorch/pytorch_word2vec.py)。 diff --git a/demo/pytorch/embedding_tutorial_en.md b/demo/pytorch/embedding_tutorial_en.md index c189344e23ff900e6f6d1c9514859985b4384824..9c465afa0373f56ffd8681ea4f303820027d1cc5 100644 --- a/demo/pytorch/embedding_tutorial_en.md +++ b/demo/pytorch/embedding_tutorial_en.md @@ -127,7 +127,7 @@ Insert the above code snippet into your embedding training program. This will save the embeddings and the word dictionary to the `./embedding_log` folder. -We can now activate the VisualDL by running `visualDL --logdir=./embedding_log`. +We can now activate the VisualDL by running `visualdl --logdir=./embedding_log`. Use your browser to navigate to `localhost:8080`, switch the tab to `High Dimensional` You can download the tutorial code [here](https://github.com/PaddlePaddle/VisualDL/blob/develop/demo/pytorch/pytorch_word2vec.py). diff --git a/docs/develop/how_to_dev_backend_cn.md b/docs/develop/how_to_dev_backend_cn.md index a9803351b8ffa4d65065a782d851b1b14257708d..7bd536f269cc0311315203e36b688e6f44616a4b 100644 --- a/docs/develop/how_to_dev_backend_cn.md +++ b/docs/develop/how_to_dev_backend_cn.md @@ -32,7 +32,7 @@ VisualDL有三个功能模块. 任何在 ```server``` 文件夹里代码的改动,都可以通过运行以下命令 ``` -python visualdl/server/visualDL --logdir={LOG_DIR} --port=8080 +python visualdl/server/visualdl --logdir={LOG_DIR} --port=8080 ``` 来重启 Flask 服务器 @@ -88,7 +88,7 @@ make vl_test - 采用轻量级 Flask 框架来搭建服务器并提供以下两种服务 - 搭建主程序来支持前端应用 - 提供一系列 HTTP 访问点,通过返回的 JSON 来和前端沟通 -- ```visualDL``` : 主程序入口 +- ```visualdl``` : 主程序入口 - 定义了服务器参数 - 给前端提供 API 和 路由匹配 - ```lib.py``` : 调用库函数的入口 diff --git a/docs/develop/how_to_dev_backend_en.md b/docs/develop/how_to_dev_backend_en.md index e0382e69d332de980bd59335cb8341a4c00a0ced..cf41993e365739567b0d05f5e7069eaee4c7a7ab 100644 --- a/docs/develop/how_to_dev_backend_en.md +++ b/docs/develop/how_to_dev_backend_en.md @@ -32,7 +32,7 @@ All backend and sdk logic is under visualdl sub directory Any code changes in ```server``` folder, simply run ``` -python visualdl/server/visualDL --logdir={LOG_DIR} --port=8080 +python visualdl/server/visualdl --logdir={LOG_DIR} --port=8080 ``` to restart flask server @@ -87,7 +87,7 @@ make vl_test - Implement a server using a lightweight framework Flask, provides two services: - Host a main application with support of a front end web app - Provide a series of HTTP end points, using JSON for front end data communication -- ```visualDL``` : main app entry point +- ```visualdl``` : main app entry point - defines server arguments and config - provides API and router for front end - ```lib.py``` : delegate wrapper for function calls diff --git a/docs/getting_started/installation_cn.md b/docs/getting_started/installation_cn.md index df0c4b58a69b3f84a582374c2db4db241fbc21cd..58475aba03b4b6cde8c612fc0f91f0067a550810 100644 --- a/docs/getting_started/installation_cn.md +++ b/docs/getting_started/installation_cn.md @@ -9,7 +9,7 @@ pip install --upgrade visualdl # run a demo, vdl_create_scratch_log will create logs for testing. vdl_create_scratch_log -visualDL --logdir=scratch_log --port=8080 +visualdl --logdir=scratch_log --port=8080 # visit http://127.0.0.1:8080 ``` @@ -51,7 +51,7 @@ pip install --upgrade visualdl # 运行一个例子,vdl_create_scratch_log 将创建测试日志 vdl_create_scratch_log -visualDL --logdir=scratch_log --port=8080 +visualdl --logdir=scratch_log --port=8080 # 访问 http://127.0.0.1:8080 ``` @@ -83,7 +83,7 @@ pip install --upgrade visualdl # 运行一个例子,vdl_create_scratch_log 将创建测试日志 vdl_create_scratch_log -visualDL --logdir=scratch_log --port=8080 +visualdl --logdir=scratch_log --port=8080 # 访问 http://127.0.0.1:8080 ``` diff --git a/docs/getting_started/installation_en.md b/docs/getting_started/installation_en.md index 8170f78efdc562d3aa9d018f2184f7b0dfdec731..c2cd19d6a24414eba2ac1def9c2307f8b9ee2a48 100644 --- a/docs/getting_started/installation_en.md +++ b/docs/getting_started/installation_en.md @@ -8,7 +8,7 @@ pip install --upgrade visualdl # run a demo, vdl_create_scratch_log will create logs for testing. vdl_create_scratch_log -visualDL --logdir=scratch_log --port=8080 +visualdl --logdir=scratch_log --port=8080 # visit http://127.0.0.1:8080 ``` @@ -52,7 +52,7 @@ pip install --upgrade visualdl # run a demo, vdl_create_scratch_log will create logs for testing. vdl_create_scratch_log -visualDL --logdir=scratch_log --port=8080 +visualdl --logdir=scratch_log --port=8080 # visit http://127.0.0.1:8080 ``` @@ -85,7 +85,7 @@ pip install --upgrade visualdl # run a demo, vdl_create_scratch_log will create logs for testing. vdl_create_scratch_log -visualDL --logdir=scratch_log --port=8080 +visualdl --logdir=scratch_log --port=8080 # visit http://127.0.0.1:8080 ``` diff --git a/docs/getting_started/introduction_cn.md b/docs/getting_started/introduction_cn.md index f28fceb58e70f2fd919a38fadd950693ae309cbc..cb326aede18b531ef3f60b1a7257c8b380807a29 100644 --- a/docs/getting_started/introduction_cn.md +++ b/docs/getting_started/introduction_cn.md @@ -46,7 +46,7 @@ for step in steps: - 启动visualdl service即可通过浏览器查看日志的可视化结果。 ```shell -visualDL --logdir ./log --port 8080 +visualdl --logdir ./log --port 8080 ``` ### 功能全 1. Scalar. 支持Scalar打点数据展示,如上图所示: diff --git a/docs/getting_started/introduction_en.md b/docs/getting_started/introduction_en.md index 6b1fbb51a436616cf328ca652d96bbfaa2aa18c3..d29b4e78fecd09fe16f586bdaf7c0158b0dee437 100644 --- a/docs/getting_started/introduction_en.md +++ b/docs/getting_started/introduction_en.md @@ -48,7 +48,7 @@ for step in steps: - Launch Visual DL service and you can see the visualization results. ```shell -visualDL --logdir ./log --port 8080 +visualdl --logdir ./log --port 8080 ``` ### Comprehensive Usability diff --git a/docs/getting_started/quick_start_cn.md b/docs/getting_started/quick_start_cn.md index 1aa09807259241b22c565affc1cdf014efdddb38..6b9cf40f523e77bcfe6c0d917734b079a0e16c73 100644 --- a/docs/getting_started/quick_start_cn.md +++ b/docs/getting_started/quick_start_cn.md @@ -56,7 +56,7 @@ for step in range(200): 上述例子生成了一段随机日志,接下来可以打开board页面: ``` -visualDL --logdir ./random_log --port 8080 +visualdl --logdir ./random_log --port 8080 ``` 之后用浏览器打开地址 `http://0.0.0.0:8080`,就可以看到scalar下的可视化结果 @@ -86,7 +86,7 @@ VisualDL 的 C++ SDK 与 Python 的基本一致,上面Python示例对应的C++ VisualDL 支持开源的 [ONNX](https://github.com/onnx/onnx)模型结构的可视化,目前ONNX支持包括 `pytorch`, `Caffe2`, `Caffe`, `MxNet` 在内的多种深度学习平台的模型结构的转化。 ``` -visualDL --logdir somedir --model_pb +visualdl --logdir somedir --model_pb ``` 比如mnist,会得到如下graph diff --git a/docs/getting_started/quick_start_en.md b/docs/getting_started/quick_start_en.md index ddf542fa4f27712fe69710035a565bf29d9ef186..5b067711763e4b0d21ba8566e3080f8494ddc33b 100644 --- a/docs/getting_started/quick_start_en.md +++ b/docs/getting_started/quick_start_en.md @@ -62,7 +62,7 @@ for step in range(200): The example above randomly generated some logs. Next we can open the board page: ``` -visualDL --logdir ./random_log --port 8080 +visualdl --logdir ./random_log --port 8080 ``` Point your browser to `http://0.0.0.0:8080`, you can see the scalar as follows: @@ -93,7 +93,7 @@ VisualDL supports the visualization for the format in [ONNX](https://github.com/ Currently, ONNX supports format conversion among various deep learning frameworks such as `MXNet`, `PyTorch`, `Caffe2`, `Caffe`. ``` -visualDL --logdir somedir --model_pb +visualdl --logdir somedir --model_pb ``` For example, for the MNIST dataset, Graph component can render model graph as below: diff --git a/scripts/start_demo_server.sh b/scripts/start_demo_server.sh index f666e54a94d811aab9f5cc38c9acacb113e8ab5f..ee73ca85cc53bec57e34aa507469558af6e61679 100755 --- a/scripts/start_demo_server.sh +++ b/scripts/start_demo_server.sh @@ -26,4 +26,4 @@ trap finish EXIT HUP INT QUIT PIPE TERM cd $CURRENT_DIR # Run the visualDL with local PATH -python ${SCRIPT_DIR}/../visualdl/server/visualDL "$@" +python ${SCRIPT_DIR}/../visualdl/server/visualdl "$@" diff --git a/scripts/start_dev_server.sh b/scripts/start_dev_server.sh index af65c01a971402102f485904279f621cd66839d5..1abfff7e99d44cbc044bb45743f5dc64cbd9dbee 100755 --- a/scripts/start_dev_server.sh +++ b/scripts/start_dev_server.sh @@ -25,4 +25,4 @@ trap finish EXIT HUP INT QUIT PIPE TERM cd $CURRENT_DIR #Run the visualDL with local PATH -python ${SCRIPT_DIR}/../visualdl/server/visualDL "$@" +python ${SCRIPT_DIR}/../visualdl/server/visualdl "$@" diff --git a/setup.py b/setup.py index 72c2d919d953135113e2ee56246646df62353efc..0776666bdb0c99fd8f72b5df47673d3135f8a625 100644 --- a/setup.py +++ b/setup.py @@ -103,7 +103,7 @@ libraries = ['core.so'] if platform == 'win32': libraries = ['core.pyd', 'libprotobuf.dll'] -scripts = ['visualdl/server/visualDL', 'demo/vdl_create_scratch_log'] +scripts = ['visualdl/server/visualdl', 'demo/vdl_create_scratch_log'] if platform == 'win32': scripts.append('visualdl/server/visualDL.bat') diff --git a/visualdl/server/visualDL b/visualdl/server/visualdl similarity index 100% rename from visualdl/server/visualDL rename to visualdl/server/visualdl