visdom安装及启动

时间:2022-07-24
本文章向大家介绍visdom安装及启动,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

交流、咨询,有疑问欢迎添加QQ 2125364717,一起交流、一起发现问题、一起进步啊,哈哈哈哈哈

在训练神经网络时有时需要开启visdom,否则遇到如下提示:

requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x00000
19B93886588>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))

安装visdom

pip安装:

pip install visdom

conda安装:

# 任选其一即可
conda install -c conda-forge visdom
conda install -c conda-forge/label/gcc7 visdom
conda install -c conda-forge/label/cf201901 visdom
conda install -c conda-forge/label/cf202003 visdom

启动visdom

使用命令:

python -m visdom.server

观察到:

Checking for scripts.
It's Alive!
INFO:root:Application Started
You can navigate to http://localhost:8097

说明启动成功,即可访问http://localhost:8097。

各位看官老爷,如果觉得对您有用麻烦赏个子,创作不易,0.1元就行了。下面是微信乞讨码:

添加描述

添加描述