when i run :
$ python train.py --dataroot ./datasets/maps --name maps_cyclegan --model cycle_gan
the error code :
ConnectionError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('
how can I solve this??
==================
Traceback (most recent call last):
File "/home/khryang/.local/lib/python2.7/site-packages/visdom/__init__.py", line 228, in _send
data=json.dumps(msg),
File "/home/khryang/.local/lib/python2.7/site-packages/requests/api.py", line 112, in post
return request('post', url, data=data, json=json, *kwargs)
File "/home/khryang/.local/lib/python2.7/site-packages/requests/api.py", line 58, in request
return session.request(method=method, url=url, *kwargs)
File "/home/khryang/.local/lib/python2.7/site-packages/requests/sessions.py", line 513, in request
resp = self.send(prep, *send_kwargs)
File "/home/khryang/.local/lib/python2.7/site-packages/requests/sessions.py", line 623, in send
r = adapter.send(request, *kwargs)
File "/home/khryang/.local/lib/python2.7/site-packages/requests/adapters.py", line 504, in send
raise ConnectionError(e, request=request)
ConnectionError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('
(epoch: 1, iters: 700, time: 0.456) D_A: 0.215 G_A: 0.561 Cyc_A: 2.316 D_B: 0.163 G_B: 0.450 Cyc_B: 0.794
python -m visdom.server
The visdom display functionality is turned on by default. To avoid the extra overhead of communicating with visdom set --display_id 0.
@xuhuaren, @junyanz thanks for your answer!! I'll do that.
@junyanz , did change the display_id to 0 but whenever i start the visdom server,it shows nothing,is there any specific folder i should run it into?should i do it after training?
If you want to use the visdom server, you should change the display_id to a non-zero value. To view training results and loss plots, run python -m visdom.server and click the URL http://localhost:8097.
added "--display_id 0" running train.py but I still get this error
@Hunterwolf88 this seems to be strange. Could you post both your command line and the errors?
I have same problem now. If I use --display "non-zero" value, it shows
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8889): Max retries exceeded with url: /env/main (Caused by NewConnectionError('
So, I would set --display_id 0 up so that it turned off display. Then, no html and "checkpoints" folder and also no training is done.
See this Q & A for more details. You need to install visdom and type python -m visdom.server.
@taesung89 Adding --display_id 0 should be able to perform training without visualization function. We will have a look at that.
@junyanz
Yeah. I already install visdom and type "python -m visdom.server". It worked well but suddenly it doesn't work. I may need to install visdom again.
Most helpful comment
python -m visdom.server