Brats dataset bug!!!
Training on the Brats dataset yields errors, but can still be trained. Please tell me why these errors.
/home/ubuntu/anaconda3/envs/medsegdiff/bin/python /media/ubuntu/89696b21-997d-42b2-a1c0-b16d972fd7b72/hlq/MedSegDiff-master/scripts/segmentation_train.py --data_name BRATS --data_dir /media/ubuntu/89696b21-997d-42b2-a1c0-b16d972fd7b72/hlq/data/BraTS2020/training --out_dir './BRATS2020_results/' --image_size 256 --num_channels 128 --class_cond False --num_res_blocks 2 --num_heads 1 --learn_sigma True --use_scale_shift_norm False --attention_resolutions 16 --diffusion_steps 1000 --noise_schedule linear --rescale_learned_sigmas False --rescale_timesteps False --lr 1e-4 --batch_size 8 Setting up a new session... Traceback (most recent call last): File "/home/ubuntu/anaconda3/envs/medsegdiff/lib/python3.8/site-packages/urllib3/connection.py", line 199, in _new_conn sock = connection.create_connection( File "/home/ubuntu/anaconda3/envs/medsegdiff/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection raise err File "/home/ubuntu/anaconda3/envs/medsegdiff/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 "/home/ubuntu/anaconda3/envs/medsegdiff/lib/python3.8/site-packages/urllib3/connectionpool.py", line 789, in urlopen response = self._make_request( File "/home/ubuntu/anaconda3/envs/medsegdiff/lib/python3.8/site-packages/urllib3/connectionpool.py", line 495, in _make_request conn.request( File "/home/ubuntu/anaconda3/envs/medsegdiff/lib/python3.8/site-packages/urllib3/connection.py", line 441, in request self.endheaders() File "/home/ubuntu/anaconda3/envs/medsegdiff/lib/python3.8/http/client.py", line 1251, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/home/ubuntu/anaconda3/envs/medsegdiff/lib/python3.8/http/client.py", line 1011, in _send_output self.send(msg) File "/home/ubuntu/anaconda3/envs/medsegdiff/lib/python3.8/http/client.py", line 951, in send self.connect() File "/home/ubuntu/anaconda3/envs/medsegdiff/lib/python3.8/site-packages/urllib3/connection.py", line 279, in connect self.sock = self._new_conn() File "/home/ubuntu/anaconda3/envs/medsegdiff/lib/python3.8/site-packages/urllib3/connection.py", line 214, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7d5d13ca30>: 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 "/home/ubuntu/anaconda3/envs/medsegdiff/lib/python3.8/site-packages/requests/adapters.py", line 667, in send resp = conn.urlopen( File "/home/ubuntu/anaconda3/envs/medsegdiff/lib/python3.8/site-packages/urllib3/connectionpool.py", line 843, in urlopen retries = retries.increment( File "/home/ubuntu/anaconda3/envs/medsegdiff/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=8850): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7d5d13ca30>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred: