Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConnectionError[Errno 111], during run 'train.py' of maps #38

Closed
khryang opened this issue May 31, 2017 · 10 comments
Closed

ConnectionError[Errno 111], during run 'train.py' of maps #38

khryang opened this issue May 31, 2017 · 10 comments

Comments

@khryang
Copy link

khryang commented May 31, 2017

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('<urllib3.connection.HTTPConnection object at 0x7fa2c1b19290>: Failed to establish a new connection: [Errno 111] Connection refused',))

how can I solve this??

==================
full script of error

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('<urllib3.connection.HTTPConnection object at 0x7fa2c1b19290>: Failed to establish a new connection: [Errno 111] Connection refused',))
(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

@xuhuaren
Copy link

xuhuaren commented Jun 5, 2017

python -m visdom.server

@junyanz
Copy link
Owner

junyanz commented Jun 8, 2017

The visdom display functionality is turned on by default. To avoid the extra overhead of communicating with visdom set --display_id 0.

@junyanz junyanz closed this as completed Jun 8, 2017
@khryang
Copy link
Author

khryang commented Jun 8, 2017

@xuhuaren, @junyanz thanks for your answer!! I'll do that.

@eliethesaiyan
Copy link

@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?

@junyanz
Copy link
Owner

junyanz commented Jan 26, 2018

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.

@Hunterwolf88
Copy link

added "--display_id 0" running train.py but I still get this error

@junyanz
Copy link
Owner

junyanz commented Apr 19, 2018

@Hunterwolf88 this seems to be strange. Could you post both your command line and the errors?

@snlee81
Copy link

snlee81 commented Sep 5, 2018

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('<urllib3.connection.HTTPConnection object at 0x7f1ca74fb208>: Failed to establish a new connection: [Errno 111] Connection refused',)). Basically, visdom error. It seems visdom error is from bug.

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.

@junyanz
Copy link
Owner

junyanz commented Sep 5, 2018

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.

@snlee81
Copy link

snlee81 commented Sep 5, 2018

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants