Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于paddlehub可视化 #910

Open
Masterkmp opened this issue Sep 21, 2020 · 10 comments
Open

关于paddlehub可视化 #910

Masterkmp opened this issue Sep 21, 2020 · 10 comments
Assignees

Comments

@Masterkmp
Copy link

在使用paddlehub和可视化的时候请问怎么样才能看到训练集的曲线和验证集的指标对比曲线都在一个图里呢,hub默认的通过可视化打开log文件只有验证集的曲线。

@Steffy-zxf
Copy link
Contributor

你好!关于训练过程效果可视化,可以参考相应demo的可视化说明。例如文本分类任务可视化说明:https://github.com/PaddlePaddle/PaddleHub/tree/release/v1.8/demo/text_classification#%E5%8F%AF%E8%A7%86%E5%8C%96

@Masterkmp
Copy link
Author

你好!关于训练过程效果可视化,可以参考相应demo的可视化说明。例如文本分类任务可视化说明:https://github.com/PaddlePaddle/PaddleHub/tree/release/v1.8/demo/text_classification#%E5%8F%AF%E8%A7%86%E5%8C%96
### 你好我按照文档运行了指令,报错了。结果如下:
aistudio@jupyter-116545-931725:~$ visualdl --logdir $CKPT_DIR/visualization --host ${HOST_IP} --port ${PORT_NUM}usage: visualdl [-h] [--logdir LOGDIR [LOGDIR ...]] [-p PORT] [-t HOST] [--model MODEL]
[--cache_timeout CACHE_TIMEOUT] [-L LANGUAGE] [-P PUBLIC_PATH] [-A]
visualdl: error: argument -t/--host: expected one argument

@Steffy-zxf
Copy link
Contributor

你好!选项参数host 需要更换成运行程序的机器ip地址。

@Masterkmp
Copy link
Author

你好!选项参数host 需要更换成运行程序的机器ip地址。

你好,还是报错。
`aistudio@jupyter-116545-931725:~$ visualdl --logdir $CKPT_DIR/visualization --host 219.216.65.116 --port 49675
[INFO 2020-09-21 12:18:48,667 app.py:141] port=49675

  • Serving Flask app "visualdl" (lazy loading)
  • Environment: production
    WARNING: This is a development server. Do not use it in a production deployment.
    Use a production WSGI server instead.
  • Debug mode: off
    Traceback (most recent call last):
    File "/opt/conda/envs/python35-paddle120-env/bin/visualdl", line 10, in
    sys.exit(main())
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/visualdl/server/app.py", line 143, in main
    app.run(debug=False, host=args.host, port=args.port, threaded=False)
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/flask/app.py", line 990, in run
    run_simple(host, port, self, **options)
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/werkzeug/serving.py", line 1010, in run_simple
    inner()
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/werkzeug/serving.py", line 963, in inner
    fd=fd,
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/werkzeug/serving.py", line 821, in make_server
    host, port, app, request_handler, passthrough_errors, ssl_context, fd=fd
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/werkzeug/serving.py", line 699, in init
    HTTPServer.init(self, server_address, handler)
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/socketserver.py", line 452, in init
    self.server_bind()
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/http/server.py", line 137, in server_bind
    socketserver.TCPServer.server_bind(self)
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/socketserver.py", line 466, in server_bind
    self.socket.bind(self.server_address)
    OSError: [Errno 99] Cannot assign requested address`

@ShenYuhan
Copy link
Contributor

aistudio与本地,在使用visualdl的方式上有些差别,您可以看下在aistudio上使用visualdl的文档
https://ai.baidu.com/forum/topic/show/960053

@Masterkmp
Copy link
Author

aistudio与本地,在使用visualdl的方式上有些差别,您可以看下在aistudio上使用visualdl的文档
https://ai.baidu.com/forum/topic/show/960053

好的,谢谢解答

@dickobe
Copy link

dickobe commented Sep 27, 2020

你好!选项参数host 需要更换成运行程序的机器ip地址。

在linux下怎么看呢?

@EricJoung1997
Copy link

我用的命令是 'visualdl --logdir $CKPT_DIR/visualization --host localhost --port 2222' ,没有报错,但是浏览器localhost拒绝访问,请问什么原因?

@ShenYuhan
Copy link
Contributor

您是本机启动,本机查看吗,可以试一下把localhost改成 0.0.0.0

@EricJoung1997
Copy link

您是本机启动,本机查看吗,可以试一下把localhost改成 0.0.0.0
我是在AIstudio上运行的,ip地址和端口需要改变吗?改成 0.0.0.0还是无法访问

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants