aimansnigdha / ambiguous-medical-image-segmentation-using-diffusion-models Goto Github PK
View Code? Open in Web Editor NEWAccepted in CVPR 2023
Home Page: https://aimansnigdha.github.io/cimd/
License: Apache License 2.0
Accepted in CVPR 2023
Home Page: https://aimansnigdha.github.io/cimd/
License: Apache License 2.0
I am very grateful for the authors to bring a novel paper to us. But when I tried to reproduce your work, I met some problem. Could you provide the processed data about KIDC and CI score code?
I've found that the MSE of the model increases after adding the loss of ANM and ACM, so what it does is make the mask blurry
(medical) venkatasiddharth.d@gnode044:/medical-segmentation$ ./myflags.sh/medical-segmentation$ ./myrun.sh
(medical) venkatasiddharth.d@gnode044:
[INFO] 2024-07-07 11:27:23,263 run: Running torch.distributed.run with args: ['/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/torch/distributed/run.py', '--nproc_per_node=2', '--master_port=29501', 'scripts/segmentation_train.py', '--data_dir', './data/training']
[INFO] 2024-07-07 11:27:23,328 run: Using nproc_per_node=2.
Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
[INFO] 2024-07-07 11:27:23,328 api: Starting elastic_operator with launch configs:
entrypoint : scripts/segmentation_train.py
min_nodes : 1
max_nodes : 1
nproc_per_node : 2
run_id : none
rdzv_backend : static
rdzv_endpoint : 127.0.0.1:29501
rdzv_configs : {'rank': 0, 'timeout': 900}
max_restarts : 3
monitor_interval : 5
log_dir : None
metrics_cfg : {}
[INFO] 2024-07-07 11:27:23,331 local_elastic_agent: log directory set to: /tmp/torchelastic_0u2n1szj/none_4hy3wwnw
[INFO] 2024-07-07 11:27:23,331 api: [default] starting workers for entrypoint: python
[INFO] 2024-07-07 11:27:23,331 api: [default] Rendezvous'ing worker group
[INFO] 2024-07-07 11:27:23,331 static_tcp_rendezvous: Creating TCPStore as the c10d::Store implementation
/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/torch/distributed/elastic/utils/store.py:52: FutureWarning: This is an experimental API and will be changed in future.
warnings.warn(
[INFO] 2024-07-07 11:27:23,333 api: [default] Rendezvous complete for workers. Result:
restart_count=0
master_addr=127.0.0.1
master_port=29501
group_rank=0
group_world_size=1
local_ranks=[0, 1]
role_ranks=[0, 1]
global_ranks=[0, 1]
role_world_sizes=[2, 2]
global_world_sizes=[2, 2]
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 196, in _new_conn
sock = connection.create_connection(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 495, in _make_request
conn.request(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 398, in request
self.endheaders()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 236, in connect
self.sock = self._new_conn()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 211, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x153f2353cdf0>: Failed to establish a new connection: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 196, in _new_conn
sock = connection.create_connection(
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x153f2353cdf0>: Failed to establish a new connection: [Errno 111] Connection refused'))
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
During handling of the above exception, another exception occurred:
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
Traceback (most recent call last):
ConnectionRefusedError: [Errno 111] Connection refused
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/visdom/init.py", line 708, in _send
return self._handle_post(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/visdom/init.py", line 677, in _handle_post
r = self.session.post(url, data=data)
The above exception was the direct cause of the following exception:
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/sessions.py", line 637, in post
return self.request("POST", url, data=data, json=json, **kwargs)
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/adapters.py", line 700, 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 0x153f2353cdf0>: Failed to establish a new connection: [Errno 111] Connection refused'))
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 495, in _make_request
conn.request(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 398, in request
self.endheaders()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 236, in connect
self.sock = self._new_conn()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 211, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x154bf8b9edf0>: Failed to establish a new connection: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x154bf8b9edf0>: 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 "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 196, in _new_conn
sock = connection.create_connection(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
Traceback (most recent call last):
ConnectionRefusedError: [Errno 111] Connection refused
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 196, in _new_conn
sock = connection.create_connection(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
The above exception was the direct cause of the following exception:
ConnectionRefusedError: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 495, in _make_request
conn.request(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 495, in _make_request
conn.request(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 398, in request
self.endheaders()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 398, in request
self.endheaders()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 236, in connect
self.sock = self._new_conn()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 236, in connect
self.sock = self._new_conn()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 211, in _new_conn
raise NewConnectionError(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 211, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x153f2353ce50>: Failed to establish a new connection: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x154bf8b9ee50>: Failed to establish a new connection: [Errno 111] Connection refused
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
The above exception was the direct cause of the following exception:
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
Traceback (most recent call last):
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x153f2353ce50>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x154bf8b9ee50>: Failed to establish a new connection: [Errno 111] Connection refused'))
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/visdom/init.py", line 708, in _send
return self._handle_post(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/visdom/init.py", line 677, in _handle_post
r = self.session.post(url, data=data)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 196, in _new_conn
sock = connection.create_connection(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 495, in _make_request
conn.request(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 398, in request
self.endheaders()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 236, in connect
self.sock = self._new_conn()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 211, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x153f2324ffd0>: Failed to establish a new connection: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x153f2324ffd0>: 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 "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 196, in _new_conn
sock = connection.create_connection(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 495, in _make_request
conn.request(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 398, in request
self.endheaders()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 236, in connect
self.sock = self._new_conn()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 211, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x154bf88b1fd0>: Failed to establish a new connection: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x154bf88b1fd0>: 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 "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 196, in _new_conn
sock = connection.create_connection(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 495, in _make_request
conn.request(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 398, in request
self.endheaders()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 236, in connect
self.sock = self._new_conn()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 211, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x153f22dda490>: Failed to establish a new connection: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x153f22dda490>: 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 "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/visdom/init.py", line 708, in _send
return self._handle_post(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/visdom/init.py", line 677, in _handle_post
r = self.session.post(url, data=data)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/sessions.py", line 637, in post
return self.request("POST", url, data=data, json=json, **kwargs)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
Exception in user code: File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
------------------------------------------------------------ File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/adapters.py", line 700, 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 0x153f22dda490>: Failed to establish a new connection: [Errno 111] Connection refused'))
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 196, in _new_conn
sock = connection.create_connection(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 495, in _make_request
conn.request(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 398, in request
self.endheaders()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 236, in connect
self.sock = self._new_conn()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 211, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x154bf843c490>: Failed to establish a new connection: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x154bf843c490>: 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 "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 196, in _new_conn
sock = connection.create_connection(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 495, in _make_request
conn.request(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 398, in request
self.endheaders()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 236, in connect
self.sock = self._new_conn()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 211, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x154bf812eb80>: Failed to establish a new connection: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x154bf812eb80>: Failed to establish a new connection: [Errno 111] Connection refused'))
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/visdom/init.py", line 708, in _send
return self._handle_post(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 196, in _new_conn
sock = connection.create_connection(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/visdom/init.py", line 677, in _handle_post
r = self.session.post(url, data=data)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/sessions.py", line 637, in post
return self.request("POST", url, data=data, json=json, **kwargs)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
ConnectionRefusedError: [Errno 111] Connection refused
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/adapters.py", line 700, in send
raise ConnectionError(e, request=request)
The above exception was the direct cause of the following exception:
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x154bf812eb80>: Failed to establish a new connection: [Errno 111] Connection refused'))
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 495, in _make_request
conn.request(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 398, in request
self.endheaders()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 236, in connect
self.sock = self._new_conn()
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connection.py", line 211, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x153f22acbb80>: Failed to establish a new connection: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x153f22acbb80>: 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 "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/visdom/init.py", line 708, in _send
return self._handle_post(
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/visdom/init.py", line 677, in _handle_post
r = self.session.post(url, data=data)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/sessions.py", line 637, in post
return self.request("POST", url, data=data, json=json, **kwargs)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/home2/venkatasiddharth.d/miniconda3/envs/medical/lib/python3.8/site-packages/requests/adapters.py", line 700, 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 0x153f22acbb80>: Failed to establish a new connection: [Errno 111] Connection refused'))
[Errno 111] Connection refused
on_close() takes 1 positional argument but 3 were given
[Errno 111] Connection refused
on_close() takes 1 positional argument but 3 were given
Please help me in dealing with this error..
During training, the while loop in the 'run_loop' function does not seem to terminate because self. lr_ annel_ Steps=0, not self. lr_ annel_ Steps are always true.
the code is below:
segmentation_train.py
def create_argparser():
defaults = dict(
data_dir="./data/training",
schedule_sampler="uniform",
lr=1e-4,
weight_decay=0.0,
lr_anneal_steps=0,
batch_size=1,
microbatch=-1, # -1 disables microbatches
ema_rate="0.9999", # comma-separated list of EMA values
log_interval=100,
save_interval=5000,
resume_checkpoint='',#'"./results/pretrainedmodel.pt",
use_fp16=False,
fp16_scale_growth=1e-3,
)
train_util.py
class TrainLoop:
def init(
self,
*,
model,
classifier,
diffusion,
data,
dataloader,
prior,
posterior,
batch_size,
microbatch,
lr,
ema_rate,
log_interval,
save_interval,
resume_checkpoint,
use_fp16=False,
fp16_scale_growth=1e-3,
schedule_sampler=None,
weight_decay=0.0,
lr_anneal_steps=0,
):
def run_loop(self):
i = 0
totseg = 0
totcls = 0
totrec=0
data_iter = iter(self.dataloader)
while (
not self.lr_anneal_steps
or self.step + self.resume_step < self.lr_anneal_steps
):
Hi
Could you please release the code for the proposed CI score as well?
Thanks in advance!
Best,
Lukas
This is a very good job!
Can you tell me what graphics card you used for training and how long you have been training?
Thanks.
Hi ! According the code, it seems that L_vlb in the loss function is just consist of the KL divergence of the postprior and prior at time step t and not the KL divergence at all of the time steps. Is that True?
Thank you for your excellent work. Can you check this script?
Thanks for your excellent work! Could you please provide your processed data?
Hi, thank you for sharing this impressive work! I have a question: how can I train the model using a custom loss function that compares the generated image with the ground truth? Thank you in advance.
The code is written for binary segmentation. Please direct me on how to modify it for the multi-class segmentation ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.