Use visdom to visualize loss in the network. First, enter in the terminal:
python -m visdom.server
Then run the code, the result is an error, and the following information appears:
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError:
HTTPConnectionPool(host='localhost', port=8097):
Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6734182d50>:
Failed to establish a new connection:
[Errno 111] Connection refused'))
After Baidu, I found the solution:
Finished running the command: python -m visdom.serve, the following sentence will appear:
Setting up a new session...
To keep the terminal on this page, create a new terminal and run the network code in the new terminal.
Then open the link in the browser:
http://localhost:8097/
You can see the curve being drawn.
Read More:
- [Solved] os.py“, line 725, in __getitem__ raise KeyError(key) from None KeyError: ‘PATH‘
- [Solved] k8s kubeadmin init Error: http://localhost:10248/healthz‘ failed
- Springcloud configuration center client 3355 startup Error: error on get request for“ http://localhost:8761/eureka/apps/ “: Connection
- [Solved] Chrome Error: The request client is not a secure context
- [Solved] “error_code“:500,“message“:“IO Error trying to forward REST request: java.net.ConnectException: Connection Refused
- [Solved] IO Error: The Network Adapter could not establish the connection
- Error received: error: xhr’get’to URL cross domain [How to Solve]
- Running the test front-end project, Google browser accesses localhost with err_SSL_PROTOCOL_ERROR
- [Solved] Elasticsearch Error: received plaintext http traffic on an https channel, closing connection…
- Error: Can’t initialize nvrm channel [How to Solve]
- An error occurred: Sorry,Faithfully yours, nginx Error
- Tomcat: “localhost:8080” Error 401: Unauthorized
- Analysis of npm error ENOTFOUND npm ERR! network request to https://npm.***.com/*** failed and the role of the .npmrc file
- [Solved] AndroidStudio Error: Connect to 127.0.0.1:10887 [/127.0.0.1] failed: Connection refused…
- How to Solve Chrome Error: “ERR_HTTP2_PROTOCOL_ERROR”
- postman CSRF verification failed [How to Solve]
- [Solved] Ubuntu 20.04 LTS Install k8s Error: The connection to the server localhost:8080 was refused
- [Solved] Virtualenvwrapper.sh error: There was a problem running the initialization hooks.
- Python Importerror: DLL load failed: the page file is too small to complete the operation.
- [kubernetes] the pod instance of calico node always reports an error and restarts