The algorithm failed on one or more cases

The algorithm failed on one or more cases  

  By: xueran.lxr on July 24, 2023, 8:38 a.m.

Dear organizers, Thanks for hosting this challenge. After submission, I encountered the problem "The algorithm failed on one or more cases." Could you help me to solve the problem? Best regards

Re: The algorithm failed on one or more cases  

  By: giansteve on July 24, 2023, 9:03 a.m.

Hello,

On your submission with date July 22nd, the following error has been recorded: "RuntimeError: DataLoader worker (pid(s) 40) exited unexpectedly". The error log is the following:

2023-07-22T04:09:07.489000+00:00 Traceback (most recent call last):
2023-07-22T04:09:07.489000+00:00   File "/opt/conda/lib/python3.10/runpy.py", line 196, in _run_module_as_main
2023-07-22T04:09:07.489000+00:00     return _run_code(code, main_globals, None,
2023-07-22T04:09:07.489000+00:00   File "/opt/conda/lib/python3.10/runpy.py", line 86, in _run_code
2023-07-22T04:09:07.489000+00:00     exec(code, run_globals)
2023-07-22T04:09:07.489000+00:00   File "/opt/app/process.py", line 241, in <module>
2023-07-22T04:09:07.489000+00:00     Segaalgorithm().process()
2023-07-22T04:09:07.489000+00:00   File "/home/user/.local/lib/python3.10/site-packages/evalutils/evalutils.py", line 183, in process
2023-07-22T04:09:07.489000+00:00     self.process_cases()
2023-07-22T04:09:07.489000+00:00   File "/home/user/.local/lib/python3.10/site-packages/evalutils/evalutils.py", line 191, in process_cases
2023-07-22T04:09:07.489000+00:00     self._case_results.append(self.process_case(idx=idx, case=case))
2023-07-22T04:09:07.489000+00:00   File "/opt/app/process.py", line 127, in process_case
2023-07-22T04:09:07.489000+00:00     input_image=first(test_org_loader)
2023-07-22T04:09:07.489000+00:00   File "/home/user/.local/lib/python3.10/site-packages/monai/utils/misc.py", line 87, in first
2023-07-22T04:09:07.489000+00:00     for i in iterable:
2023-07-22T04:09:07.489000+00:00   File "/opt/conda/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 633, in __next__
2023-07-22T04:09:07.489000+00:00     data = self._next_data()
2023-07-22T04:09:07.489000+00:00   File "/opt/conda/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 1328, in _next_data
2023-07-22T04:09:07.489000+00:00     idx, data = self._get_data()
2023-07-22T04:09:07.490000+00:00   File "/opt/conda/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 1294, in _get_data
2023-07-22T04:09:07.490000+00:00     success, data = self._try_get_data()
2023-07-22T04:09:07.490000+00:00   File "/opt/conda/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 1145, in _try_get_data
2023-07-22T04:09:07.490000+00:00     raise RuntimeError('DataLoader worker (pid(s) {}) exited unexpectedly'.format(pids_str)) from e
2023-07-22T04:09:07.490000+00:00 RuntimeError: DataLoader worker (pid(s) 40) exited unexpectedly

I hope this helps Best Gian Marco

Re: The algorithm failed on one or more cases  

  By: xueran.lxr on July 24, 2023, 10:23 a.m.

Thank you for your reply. I modified num_workers = 1 and submitted again, but it failed. Could you tell me the error log this time? Best wish!

Re: The algorithm failed on one or more cases  

  By: giansteve on July 24, 2023, 11:14 a.m.

sure, the message is now: "TypeError: got an unexpected keyword argument 'lazy'" with the following log:

2023-07-24T10:13:20.592000+00:00 Traceback (most recent call last):
2023-07-24T10:13:20.592000+00:00   File "/opt/conda/lib/python3.10/runpy.py", line 196, in _run_module_as_main
2023-07-24T10:13:20.592000+00:00     return _run_code(code, main_globals, None,
2023-07-24T10:13:20.592000+00:00   File "/opt/conda/lib/python3.10/runpy.py", line 86, in _run_code
2023-07-24T10:13:20.592000+00:00     exec(code, run_globals)
2023-07-24T10:13:20.592000+00:00   File "/opt/app/process.py", line 256, in <module>
2023-07-24T10:13:20.592000+00:00     Segaalgorithm().process()
2023-07-24T10:13:20.592000+00:00   File "/home/user/.local/lib/python3.10/site-packages/evalutils/evalutils.py", line 183, in process
2023-07-24T10:13:20.592000+00:00     self.process_cases()
2023-07-24T10:13:20.592000+00:00   File "/home/user/.local/lib/python3.10/site-packages/evalutils/evalutils.py", line 191, in process_cases
2023-07-24T10:13:20.592000+00:00     self._case_results.append(self.process_case(idx=idx, case=case))
2023-07-24T10:13:20.592000+00:00   File "/opt/app/process.py", line 120, in process_case
2023-07-24T10:13:20.592000+00:00     Orientationd(keys="image", axcodes="RAS",lazy=None),
2023-07-24T10:13:20.592000+00:00   File "/home/user/.local/lib/python3.10/site-packages/monai/utils/deprecate_utils.py", line 206, in _wrapper
2023-07-24T10:13:20.592000+00:00     binding = sig.bind(*args, **kwargs).arguments
2023-07-24T10:13:20.592000+00:00   File "/opt/conda/lib/python3.10/inspect.py", line 3186, in bind
2023-07-24T10:13:20.592000+00:00     return self._bind(args, kwargs)
2023-07-24T10:13:20.592000+00:00   File "/opt/conda/lib/python3.10/inspect.py", line 3175, in _bind
2023-07-24T10:13:20.592000+00:00     raise TypeError(
2023-07-24T10:13:20.592000+00:00 TypeError: got an unexpected keyword argument 'lazy'