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] “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
- Springcloud configuration center client 3355 startup Error: error on get request for“ http://localhost:8761/eureka/apps/ “: Connection
- [Solved] k8s kubeadmin init Error: http://localhost:10248/healthz‘ failed
- Analysis of npm error ENOTFOUND npm ERR! network request to https://npm.***.com/*** failed and the role of the .npmrc file
- [Solved] Eureka registry service starts error: Request execution error. Endpoint = defaultendpoint
- Error received: error: xhr’get’to URL cross domain [How to Solve]
- [Solved] Ubuntu 20.04 LTS Install k8s Error: The connection to the server localhost:8080 was refused
- [Solved] Chrome Error: The request client is not a secure context
- Vs code execute command error [How to Solve]
- PIP Fatal error in launcher: Unable to create process using
- The reason and solution for the error ECONNRESET of the httpClieint request of Node.js
- Python Importerror: DLL load failed: the page file is too small to complete the operation.
- VSCode Terminal Execute tsc Commands Error [Solved]
- Github Clone Error: RPC failed; result=56, HTTP code=200
- How to Solve Error: Heartbeating to master:7182 failed.
- Flutter upgrade upgrade SDK SSL_ERROR_Syscall error [How to Solve]
- [Solved] Virtualenvwrapper.sh error: There was a problem running the initialization hooks.
- An error occurs when trying to pipe a python program to CD- sys.excepthook is missing lost sys.stderr
- [How to Solve] java.lang.IllegalArgumentException: Request header is too large