CycleGan与Pix2PixHD 报错处理
程序员文章站
2023-12-31 16:58:10
...
CycleGan的pytorch代码使用了python的visdom的可视化模块,但是在画图的时候回报错误:
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f19f9a5f0f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
解决方案:
1、首先在控制台下启动visdom:
python -m visdom.server
会看到输出:
Downloading scripts. It might take a while.
It's Alive!
INFO:root:Application Started
You can navigate to http://localhost:8097
不要关闭这个窗口
2、打开浏览器:
输入网址 http://localhost:8097 就会看到visdom界面
不要关闭这个界面