The code runs incorrectly but does not stop running.
how can I solve this?
The full script of error as follows:
Setting up a new session...
Exception in user code:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 722, in urlopen
chunked=chunked,
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 416, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 244, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1287, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1333, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1282, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1042, in _send_output
self.send(msg)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 980, in send
self.connect()
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 187, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f4d5a902278>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 450, in send
timeout=timeout
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 800, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4d5a902278>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 760, in _send
data=json.dumps(msg),
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 720, in _handle_post
r = self.session.post(url, data=data)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 577, in post
return self.request('POST', url, data=data, json=json, kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, send_kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4d5a902278>: Failed to establish a new connection: [Errno 111] Connection refused',))
[Errno 111] Connection refused
on_close() takes 1 positional argument but 3 were given
Could not connect to Visdom server.
Trying to start a server....
Command: /home/ncut/anaconda3/envs/cyclegan/bin/python -m visdom.server -p 8097 &>/dev/null &
create web directory ./checkpoints/maps_cyclegan/web...
learning rate 0.0002000 -> 0.0002000
/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/torch/optim/lr_scheduler.py:134: UserWarning: Detected call of lr_scheduler.step() before optimizer.step(). In PyTorch 1.1.0 and later, you should call them in the opposite order: optimizer.step() before lr_scheduler.step(). Failure to do this will result in PyTorch skipping the first value of the learning rate schedule. See more details at https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate
"https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate", UserWarning)
(epoch: 1, iters: 100, time: 0.227, data: 0.482) D_A: 0.232 G_A: 0.258 cycle_A: 2.129 idt_A: 0.503 D_B: 0.469 G_B: 0.588 cycle_B: 1.136 idt_B: 1.186
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 722, in urlopen
chunked=chunked,
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 416, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 244, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1287, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1333, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1282, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1042, in _send_output
self.send(msg)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 980, in send
self.connect()
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 187, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f4d5a5a7748>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 450, in send
timeout=timeout
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 800, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4d5a5a7748>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 760, in _send
data=json.dumps(msg),
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 720, in _handle_post
r = self.session.post(url, data=data)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 577, in post
return self.request('POST', url, data=data, json=json, kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, send_kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 519, in send
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 0x7f4d5a5a7748>: Failed to establish a new connection: [Errno 111] Connection refused',))
Exception in user code:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 722, in urlopen
chunked=chunked,
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 416, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 244, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1287, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1333, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1282, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1042, in _send_output
self.send(msg)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 980, in send
self.connect()
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 187, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f4d5a5a7438>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 450, in send
timeout=timeout
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 800, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4d5a5a7438>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 760, in _send
data=json.dumps(msg),
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 720, in _handle_post
r = self.session.post(url, data=data)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 577, in post
return self.request('POST', url, data=data, json=json, kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, send_kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 519, in send
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 0x7f4d5a5a7438>: Failed to establish a new connection: [Errno 111] Connection refused',))
(epoch: 1, iters: 300, time: 0.228, data: 0.002) D_A: 0.230 G_A: 0.256 cycle_A: 1.105 idt_A: 0.872 D_B: 0.302 G_B: 0.293 cycle_B: 1.817 idt_B: 0.469
Exception in user code:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 722, in urlopen
chunked=chunked,
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 416, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 244, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1287, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1333, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1282, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1042, in _send_output
self.send(msg)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 980, in send
self.connect()
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 187, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f4d5a5a61d0>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 450, in send
timeout=timeout
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 800, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4d5a5a61d0>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 760, in _send
data=json.dumps(msg),
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 720, in _handle_post
r = self.session.post(url, data=data)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 577, in post
return self.request('POST', url, data=data, json=json, kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, send_kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 519, in send
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 0x7f4d5a5a61d0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Exception in user code:
Exception in user code:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 722, in urlopen
chunked=chunked,
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 416, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 244, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1287, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1333, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1282, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1042, in _send_output
self.send(msg)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 980, in send
self.connect()
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 187, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f4d1d89ea20>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 450, in send
timeout=timeout
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 800, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4d1d89ea20>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 760, in _send
data=json.dumps(msg),
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 720, in _handle_post
r = self.session.post(url, data=data)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 577, in post
return self.request('POST', url, data=data, json=json, kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, send_kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 519, in send
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 0x7f4d1d89ea20>: Failed to establish a new connection: [Errno 111] Connection refused',))
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn
(self._dns_host, self.port), self.timeout, extra_kw
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 722, in urlopen
chunked=chunked,
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 416, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 244, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1287, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1333, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1282, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1042, in _send_output
self.send(msg)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 980, in send
self.connect()
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 187, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f4d1d89ee48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 450, in send
timeout=timeout
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 800, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4d1d89ee48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 760, in _send
data=json.dumps(msg),
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 720, in _handle_post
r = self.session.post(url, data=data)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 577, in post
return self.request('POST', url, data=data, json=json, kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, send_kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 519, in send
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 0x7f4d1d89ee48>: Failed to establish a new connection: [Errno 111] Connection refused',))
(epoch: 1, iters: 400, time: 0.885, data: 0.002) D_A: 0.271 G_A: 0.305 cycle_A: 1.942 idt_A: 0.247 D_B: 0.309 G_B: 0.210 cycle_B: 0.508 idt_B: 0.921
Exception in user code:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 722, in urlopen
chunked=chunked,
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 416, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 244, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1287, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1333, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1282, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1042, in _send_output
self.send(msg)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 980, in send
self.connect()
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 187, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f4d1d8b0f98>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 450, in send
timeout=timeout
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 800, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4d1d8b0f98>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 760, in _send
data=json.dumps(msg),
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 720, in _handle_post
r = self.session.post(url, data=data)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 577, in post
return self.request('POST', url, data=data, json=json, kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, send_kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 519, in send
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 0x7f4d1d8b0f98>: Failed to establish a new connection: [Errno 111] Connection refused',))
(epoch: 1, iters: 500, time: 0.228, data: 0.002) D_A: 0.128 G_A: 0.171 cycle_A: 1.658 idt_A: 0.454 D_B: 0.285 G_B: 0.332 cycle_B: 0.991 idt_B: 0.974
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn
(self._dns_host, self.port), self.timeout, extra_kw
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 722, in urlopen
chunked=chunked,
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 416, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 244, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1287, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1333, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1282, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1042, in _send_output
self.send(msg)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 980, in send
self.connect()
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 187, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f4d1d8d01d0>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 450, in send
timeout=timeout
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 800, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4d1d8d01d0>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 760, in _send
data=json.dumps(msg),
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 720, in _handle_post
r = self.session.post(url, data=data)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 577, in post
return self.request('POST', url, data=data, json=json, kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, send_kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 519, in send
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 0x7f4d1d8d01d0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Exception in user code:
Traceback (most recent call last):
File "/home/ncut/Desktop/pycharm item code/pytorch-CycleGAN-and-pix2pix/train.py", line 52, in
model.optimize_parameters() # calculate loss functions, get gradients, update network weights
File "/home/ncut/Desktop/pycharm item code/pytorch-CycleGAN-and-pix2pix/models/cycle_gan_model.py", line 183, in optimize_parameters
self.forward() # compute fake images and reconstruction images.
File "/home/ncut/Desktop/pycharm item code/pytorch-CycleGAN-and-pix2pix/models/cycle_gan_model.py", line 115, in forward
self.rec_A = self.netG_B(self.fake_B) # G_B(G_A(A))
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py", line 152, in forward
for t in chain(self.module.parameters(), self.module.buffers()):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1520, in parameters
for name, param in self.named_parameters(recurse=recurse):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1546, in named_parameters
for elem in gen:
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1490, in _named_members
for module_prefix, module in modules:
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1695, in named_modules
for m in module.named_modules(memo, submodule_prefix, remove_duplicate):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1695, in named_modules
for m in module.named_modules(memo, submodule_prefix, remove_duplicate):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1695, in named_modules
for m in module.named_modules(memo, submodule_prefix, remove_duplicate):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1691, in named_modules
for name, module in self._modules.items():
KeyboardInterrupt
when i run train.py in pycharm:
The code runs incorrectly but does not stop running. how can I solve this? The full script of error as follows:
Setting up a new session... Exception in user code:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 95, in create_connection raise err File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 85, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 722, in urlopen chunked=chunked, File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 416, in _make_request conn.request(method, url, **httplib_request_kw) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 244, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1287, in request self._send_request(method, url, body, headers, encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1333, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1282, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1042, in _send_output self.send(msg) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 980, in send self.connect() File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 205, in connect conn = self._new_conn() File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 187, in _new_conn self, "Failed to establish a new connection: %s" % e urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f4d5a902278>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 450, in send timeout=timeout File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 800, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4d5a902278>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 760, in _send data=json.dumps(msg), File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 720, in _handle_post r = self.session.post(url, data=data) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 577, in post return self.request('POST', url, data=data, json=json, kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 529, in request resp = self.send(prep, send_kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 645, in send r = adapter.send(request, **kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 519, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4d5a902278>: Failed to establish a new connection: [Errno 111] Connection refused',)) [Errno 111] Connection refused on_close() takes 1 positional argument but 3 were given
Could not connect to Visdom server. Trying to start a server.... Command: /home/ncut/anaconda3/envs/cyclegan/bin/python -m visdom.server -p 8097 &>/dev/null & create web directory ./checkpoints/maps_cyclegan/web... learning rate 0.0002000 -> 0.0002000 /home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/torch/optim/lr_scheduler.py:134: UserWarning: Detected call of
lr_scheduler.step()
beforeoptimizer.step()
. In PyTorch 1.1.0 and later, you should call them in the opposite order:optimizer.step()
beforelr_scheduler.step()
. Failure to do this will result in PyTorch skipping the first value of the learning rate schedule. See more details at https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate "https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate", UserWarning) (epoch: 1, iters: 100, time: 0.227, data: 0.482) D_A: 0.232 G_A: 0.258 cycle_A: 2.129 idt_A: 0.503 D_B: 0.469 G_B: 0.588 cycle_B: 1.136 idt_B: 1.186 Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 95, in create_connection raise err File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 85, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refusedDuring handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 722, in urlopen chunked=chunked, File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 416, in _make_request conn.request(method, url, **httplib_request_kw) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 244, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1287, in request self._send_request(method, url, body, headers, encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1333, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1282, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1042, in _send_output self.send(msg) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 980, in send self.connect() File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 205, in connect conn = self._new_conn() File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 187, in _new_conn self, "Failed to establish a new connection: %s" % e urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f4d5a5a7748>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 450, in send timeout=timeout File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 800, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4d5a5a7748>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 760, in _send data=json.dumps(msg), File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 720, in _handle_post r = self.session.post(url, data=data) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 577, in post return self.request('POST', url, data=data, json=json, kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 529, in request resp = self.send(prep, send_kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 645, in send r = adapter.send(request, **kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 519, in send 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 0x7f4d5a5a7748>: Failed to establish a new connection: [Errno 111] Connection refused',)) Exception in user code:
(epoch: 1, iters: 200, time: 0.230, data: 0.003) D_A: 0.173 G_A: 0.267 cycle_A: 2.317 idt_A: 0.363 D_B: 0.300 G_B: 0.439 cycle_B: 0.697 idt_B: 1.128 Exception in user code:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 95, in create_connection raise err File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 85, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 722, in urlopen chunked=chunked, File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 416, in _make_request conn.request(method, url, **httplib_request_kw) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 244, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1287, in request self._send_request(method, url, body, headers, encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1333, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1282, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1042, in _send_output self.send(msg) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 980, in send self.connect() File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 205, in connect conn = self._new_conn() File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 187, in _new_conn self, "Failed to establish a new connection: %s" % e urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f4d5a5a7438>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 450, in send timeout=timeout File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 800, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4d5a5a7438>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 760, in _send data=json.dumps(msg), File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 720, in _handle_post r = self.session.post(url, data=data) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 577, in post return self.request('POST', url, data=data, json=json, kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 529, in request resp = self.send(prep, send_kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 645, in send r = adapter.send(request, **kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 519, in send 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 0x7f4d5a5a7438>: Failed to establish a new connection: [Errno 111] Connection refused',)) (epoch: 1, iters: 300, time: 0.228, data: 0.002) D_A: 0.230 G_A: 0.256 cycle_A: 1.105 idt_A: 0.872 D_B: 0.302 G_B: 0.293 cycle_B: 1.817 idt_B: 0.469 Exception in user code:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 95, in create_connection raise err File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 85, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 722, in urlopen chunked=chunked, File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 416, in _make_request conn.request(method, url, **httplib_request_kw) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 244, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1287, in request self._send_request(method, url, body, headers, encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1333, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1282, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1042, in _send_output self.send(msg) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 980, in send self.connect() File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 205, in connect conn = self._new_conn() File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 187, in _new_conn self, "Failed to establish a new connection: %s" % e urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f4d5a5a61d0>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 450, in send timeout=timeout File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 800, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4d5a5a61d0>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 760, in _send data=json.dumps(msg), File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 720, in _handle_post r = self.session.post(url, data=data) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 577, in post return self.request('POST', url, data=data, json=json, kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 529, in request resp = self.send(prep, send_kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 645, in send r = adapter.send(request, **kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 519, in send 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 0x7f4d5a5a61d0>: Failed to establish a new connection: [Errno 111] Connection refused',)) Exception in user code:
Exception in user code:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 95, in create_connection raise err File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 85, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 722, in urlopen chunked=chunked, File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 416, in _make_request conn.request(method, url, **httplib_request_kw) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 244, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1287, in request self._send_request(method, url, body, headers, encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1333, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1282, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1042, in _send_output self.send(msg) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 980, in send self.connect() File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 205, in connect conn = self._new_conn() File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 187, in _new_conn self, "Failed to establish a new connection: %s" % e urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f4d1d89ea20>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 450, in send timeout=timeout File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 800, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4d1d89ea20>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 760, in _send data=json.dumps(msg), File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 720, in _handle_post r = self.session.post(url, data=data) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 577, in post return self.request('POST', url, data=data, json=json, kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 529, in request resp = self.send(prep, send_kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 645, in send r = adapter.send(request, kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 519, in send 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 0x7f4d1d89ea20>: Failed to establish a new connection: [Errno 111] Connection refused',)) Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn (self._dns_host, self.port), self.timeout, extra_kw File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 95, in create_connection raise err File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 85, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 722, in urlopen chunked=chunked, File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 416, in _make_request conn.request(method, url, **httplib_request_kw) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 244, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1287, in request self._send_request(method, url, body, headers, encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1333, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1282, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1042, in _send_output self.send(msg) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 980, in send self.connect() File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 205, in connect conn = self._new_conn() File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 187, in _new_conn self, "Failed to establish a new connection: %s" % e urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f4d1d89ee48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 450, in send timeout=timeout File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 800, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4d1d89ee48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 760, in _send data=json.dumps(msg), File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 720, in _handle_post r = self.session.post(url, data=data) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 577, in post return self.request('POST', url, data=data, json=json, kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 529, in request resp = self.send(prep, send_kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 645, in send r = adapter.send(request, **kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 519, in send 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 0x7f4d1d89ee48>: Failed to establish a new connection: [Errno 111] Connection refused',)) (epoch: 1, iters: 400, time: 0.885, data: 0.002) D_A: 0.271 G_A: 0.305 cycle_A: 1.942 idt_A: 0.247 D_B: 0.309 G_B: 0.210 cycle_B: 0.508 idt_B: 0.921 Exception in user code:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 95, in create_connection raise err File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 85, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 722, in urlopen chunked=chunked, File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 416, in _make_request conn.request(method, url, **httplib_request_kw) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 244, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1287, in request self._send_request(method, url, body, headers, encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1333, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1282, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1042, in _send_output self.send(msg) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 980, in send self.connect() File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 205, in connect conn = self._new_conn() File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 187, in _new_conn self, "Failed to establish a new connection: %s" % e urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f4d1d8b0f98>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 450, in send timeout=timeout File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 800, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4d1d8b0f98>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 760, in _send data=json.dumps(msg), File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 720, in _handle_post r = self.session.post(url, data=data) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 577, in post return self.request('POST', url, data=data, json=json, kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 529, in request resp = self.send(prep, send_kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 645, in send r = adapter.send(request, kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 519, in send 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 0x7f4d1d8b0f98>: Failed to establish a new connection: [Errno 111] Connection refused',)) (epoch: 1, iters: 500, time: 0.228, data: 0.002) D_A: 0.128 G_A: 0.171 cycle_A: 1.658 idt_A: 0.454 D_B: 0.285 G_B: 0.332 cycle_B: 0.991 idt_B: 0.974 Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn (self._dns_host, self.port), self.timeout, extra_kw File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 95, in create_connection raise err File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/connection.py", line 85, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 722, in urlopen chunked=chunked, File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 416, in _make_request conn.request(method, url, **httplib_request_kw) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 244, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1287, in request self._send_request(method, url, body, headers, encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1333, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1282, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 1042, in _send_output self.send(msg) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/http/client.py", line 980, in send self.connect() File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 205, in connect conn = self._new_conn() File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connection.py", line 187, in _new_conn self, "Failed to establish a new connection: %s" % e urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f4d1d8d01d0>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 450, in send timeout=timeout File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/connectionpool.py", line 800, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4d1d8d01d0>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 760, in _send data=json.dumps(msg), File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/visdom/init.py", line 720, in _handle_post r = self.session.post(url, data=data) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 577, in post return self.request('POST', url, data=data, json=json, kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 529, in request resp = self.send(prep, send_kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/sessions.py", line 645, in send r = adapter.send(request, **kwargs) File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/requests/adapters.py", line 519, in send 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 0x7f4d1d8d01d0>: Failed to establish a new connection: [Errno 111] Connection refused',)) Exception in user code:
Traceback (most recent call last): File "/home/ncut/Desktop/pycharm item code/pytorch-CycleGAN-and-pix2pix/train.py", line 52, in
model.optimize_parameters() # calculate loss functions, get gradients, update network weights
File "/home/ncut/Desktop/pycharm item code/pytorch-CycleGAN-and-pix2pix/models/cycle_gan_model.py", line 183, in optimize_parameters
self.forward() # compute fake images and reconstruction images.
File "/home/ncut/Desktop/pycharm item code/pytorch-CycleGAN-and-pix2pix/models/cycle_gan_model.py", line 115, in forward
self.rec_A = self.netG_B(self.fake_B) # G_B(G_A(A))
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py", line 152, in forward
for t in chain(self.module.parameters(), self.module.buffers()):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1520, in parameters
for name, param in self.named_parameters(recurse=recurse):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1546, in named_parameters
for elem in gen:
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1490, in _named_members
for module_prefix, module in modules:
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1695, in named_modules
for m in module.named_modules(memo, submodule_prefix, remove_duplicate):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1695, in named_modules
for m in module.named_modules(memo, submodule_prefix, remove_duplicate):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1695, in named_modules
for m in module.named_modules(memo, submodule_prefix, remove_duplicate):
File "/home/ncut/anaconda3/envs/cyclegan/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1691, in named_modules
for name, module in self._modules.items():
KeyboardInterrupt
Process finished with exit code 1