failed

failed  

  By: Zhangdongovo on Sept. 4, 2024, 1:09 p.m.

"But the error message shows that code from other Python files, such as build_dataset in data_loader, has been executed. However, my process.py does not directly call the build_dataset code. Why does the following error occur: 2024-09-02T06:06:26.318000+00:00 -------------------- Building Dataset ---------------------- 2024-09-02T06:06:26.318000+00:00 DATASET.ROOT = 2024-09-02T06:06:26.318000+00:00 data_split = 2024-09-02T06:06:26.318000+00:00 PARTIAL_PORTION= 1.000001 2024-09-02T06:06:26.318000+00:00 INPUT.SIZE = 224 This information only appears when the code in build_dataset.py is executed. I have set process.py as the starting point, so it should only execute the process.py file."

Re: failed  

  By: aneeqzia_isi on Sept. 4, 2024, 8:17 p.m.

Hi. It seems like the error you had in your first submission made to prelim phase 1 is different than the following 2 submissions (maybe its resolved). The error of your most recent submission is given below (its the same error/logs for both of your recent submissions):

"urllib.error.URLError: "

Error logs:

2024-09-04T10:40:56.315000+00:00 /opt/algorithm/process.py:275: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature. 2024-09-04T10:40:56.315000+00:00 checkpoint = torch.load(best_checkpoints, map_location='cpu') 2024-09-04T10:43:08.348000+00:00 Traceback (most recent call last): 2024-09-04T10:43:08.348000+00:00 File "/opt/conda/lib/python3.10/urllib/request.py", line 1348, in do_open 2024-09-04T10:43:08.348000+00:00 h.request(req.get_method(), req.selector, req.data, headers, 2024-09-04T10:43:08.348000+00:00 File "/opt/conda/lib/python3.10/http/client.py", line 1283, in request 2024-09-04T10:43:08.348000+00:00 self._send_request(method, url, body, headers, encode_chunked) 2024-09-04T10:43:08.348000+00:00 File "/opt/conda/lib/python3.10/http/client.py", line 1329, in _send_request 2024-09-04T10:43:08.348000+00:00 self.endheaders(body, encode_chunked=encode_chunked) 2024-09-04T10:43:08.348000+00:00 File "/opt/conda/lib/python3.10/http/client.py", line 1278, in endheaders 2024-09-04T10:43:08.348000+00:00 self._send_output(message_body, encode_chunked=encode_chunked) 2024-09-04T10:43:08.348000+00:00 File "/opt/conda/lib/python3.10/http/client.py", line 1038, in _send_output 2024-09-04T10:43:08.348000+00:00 self.send(msg) 2024-09-04T10:43:08.348000+00:00 File "/opt/conda/lib/python3.10/http/client.py", line 976, in send 2024-09-04T10:43:08.348000+00:00 self.connect() 2024-09-04T10:43:08.348000+00:00 File "/opt/conda/lib/python3.10/http/client.py", line 1448, in connect 2024-09-04T10:43:08.348000+00:00 super().connect() 2024-09-04T10:43:08.348000+00:00 File "/opt/conda/lib/python3.10/http/client.py", line 942, in connect 2024-09-04T10:43:08.348000+00:00 self.sock = self._create_connection( 2024-09-04T10:43:08.348000+00:00 File "/opt/conda/lib/python3.10/socket.py", line 845, in create_connection 2024-09-04T10:43:08.348000+00:00 raise err 2024-09-04T10:43:08.348000+00:00 File "/opt/conda/lib/python3.10/socket.py", line 833, in create_connection 2024-09-04T10:43:08.348000+00:00 sock.connect(sa) 2024-09-04T10:43:08.348000+00:00 OSError: [Errno 99] Cannot assign requested address 2024-09-04T10:43:08.348000+00:00 2024-09-04T10:43:08.348000+00:00 During handling of the above exception, another exception occurred: 2024-09-04T10:43:08.348000+00:00 2024-09-04T10:43:08.348000+00:00 Traceback (most recent call last): 2024-09-04T10:43:08.348000+00:00 File "/opt/conda/lib/python3.10/runpy.py", line 196, in _run_module_as_main 2024-09-04T10:43:08.348000+00:00 return _run_code(code, main_globals, None, 2024-09-04T10:43:08.348000+00:00 File "/opt/conda/lib/python3.10/runpy.py", line 86, in _run_code 2024-09-04T10:43:08.348000+00:00 exec(code, run_globals) 2024-09-04T10:43:08.348000+00:00 File "/opt/algorithm/process.py", line 364, in 2024-09-04T10:43:08.348000+00:00 Surgtoolloc_det().process() 2024-09-04T10:43:08.348000+00:00 File "/opt/algorithm/process.py", line 119, in init 2024-09-04T10:43:08.348000+00:00 self.model = self.load_model() 2024-09-04T10:43:08.349000+00:00 File "/opt/algorithm/process.py", line 282, in load_model 2024-09-04T10:43:08.349000+00:00 model= build_model(cfg, args, self.tool_list) 2024-09-04T10:43:08.349000+00:00 File "/opt/algorithm/models/model_builder.py", line 12, in build_model 2024-09-04T10:43:08.349000+00:00 model = dualcoop(cfg, classnames) 2024-09-04T10:43:08.349000+00:00 File "/opt/algorithm/models/dualcoop.py", line 297, in dualcoop 2024-09-04T10:43:08.349000+00:00 clip_model = load_clip_to_cpu(cfg) 2024-09-04T10:43:08.349000+00:00 File "/opt/algorithm/models/dualcoop.py", line 19, in load_clip_to_cpu 2024-09-04T10:43:08.349000+00:00 model_path = clip._download(url) 2024-09-04T10:43:08.349000+00:00 File "/opt/algorithm/clip/clip.py", line 55, in _download 2024-09-04T10:43:08.349000+00:00 with urllib.request.urlopen(url) as source, open(download_target, "wb") as output: 2024-09-04T10:43:08.349000+00:00 File "/opt/conda/lib/python3.10/urllib/request.py", line 216, in urlopen 2024-09-04T10:43:08.349000+00:00 return opener.open(url, data, timeout) 2024-09-04T10:43:08.349000+00:00 File "/opt/conda/lib/python3.10/urllib/request.py", line 519, in open 2024-09-04T10:43:08.349000+00:00 response = self._open(req, data) 2024-09-04T10:43:08.349000+00:00 File "/opt/conda/lib/python3.10/urllib/request.py", line 536, in _open 2024-09-04T10:43:08.349000+00:00 result = self._call_chain(self.handle_open, protocol, protocol + 2024-09-04T10:43:08.349000+00:00 File "/opt/conda/lib/python3.10/urllib/request.py", line 496, in _call_chain 2024-09-04T10:43:08.349000+00:00 result = func(*args) 2024-09-04T10:43:08.349000+00:00 File "/opt/conda/lib/python3.10/urllib/request.py", line 1391, in https_open 2024-09-04T10:43:08.349000+00:00 return self.do_open(http.client.HTTPSConnection, req, 2024-09-04T10:43:08.349000+00:00 File "/opt/conda/lib/python3.10/urllib/request.py", line 1351, in do_open 2024-09-04T10:43:08.349000+00:00 raise URLError(err) 2024-09-04T10:43:08.349000+00:00 urllib.error.URLError: