The algorithm failed in one or more cases

The algorithm failed in one or more cases  

  By: brunom0liveira91 on Sept. 15, 2024, 12:32 a.m.

Dear Organizers,

I had "the algorithm failed on one or more cases" in the final testing phase (category 1). If possible, please let me know the reason for this error or having access to the log file?

Thank you in advance, Bruno

Re: The algorithm failed in one or more cases  

  By: aneeqzia_isi on Sept. 15, 2024, 10:53 p.m.

Following are the logs of your failed submission to final phase cat 1:

2024-09-14T12:09:08.856000+00:00 Could not find an int in the string 'endoscopic-robotic-surgery-video'. 2024-09-14T12:11:23.888000+00:00 Traceback (most recent call last): 2024-09-14T12:11:23.888000+00:00 File "/usr/local/lib/python3.8/runpy.py", line 194, in run_module_as_main 2024-09-14T12:11:23.888000+00:00 return _run_code(code, main_globals, None, 2024-09-14T12:11:23.888000+00:00 File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code 2024-09-14T12:11:23.888000+00:00 exec(code, run_globals) 2024-09-14T12:11:23.888000+00:00 File "/opt/algorithm/process.py", line 327, in 2024-09-14T12:11:23.888000+00:00 Surgtoolloc_det().process() 2024-09-14T12:11:23.888000+00:00 File "/home/algorithm/.local/lib/python3.8/site-packages/evalutils/evalutils.py", line 183, in process 2024-09-14T12:11:23.888000+00:00 self.process_cases() 2024-09-14T12:11:23.888000+00:00 File "/home/algorithm/.local/lib/python3.8/site-packages/evalutils/evalutils.py", line 191, in process_cases 2024-09-14T12:11:23.888000+00:00 self._case_results.append(self.process_case(idx=idx, case=case)) 2024-09-14T12:11:23.888000+00:00 File "/opt/algorithm/process.py", line 213, in process_case 2024-09-14T12:11:23.888000+00:00 scored_candidates = self.predict(case.path) #video file > load evalutils.py 2024-09-14T12:11:23.888000+00:00 File "/opt/algorithm/process.py", line 312, in predict 2024-09-14T12:11:23.888000+00:00 name = f'slice_nr_' + self.tool_list2[int(cls)] 2024-09-14T12:11:23.888000+00:00 IndexError: list index out of range

 Last edited by: aneeqzia_isi on Sept. 15, 2024, 11:01 p.m., edited 1 time in total.

Re: The algorithm failed in one or more cases  

  By: aneeqzia_isi on Sept. 15, 2024, 11:01 p.m.

In case you would like to get the error logs for your submission to cat 2 final phase, here they are:

2024-09-15T20:18:03.062000+00:00 Could not find an int in the string 'endoscopic-robotic-surgery-video'. 2024-09-15T20:37:08.331000+00:00 Traceback (most recent call last): 2024-09-15T20:37:08.331000+00:00 File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main 2024-09-15T20:37:08.331000+00:00 return _run_code(code, main_globals, None, 2024-09-15T20:37:08.331000+00:00 File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code 2024-09-15T20:37:08.332000+00:00 exec(code, run_globals) 2024-09-15T20:37:08.332000+00:00 File "/opt/algorithm/process.py", line 329, in 2024-09-15T20:37:08.332000+00:00 SurgVU_classify().process() 2024-09-15T20:37:08.332000+00:00 File "/home/algorithm/.local/lib/python3.8/site-packages/evalutils/evalutils.py", line 184, in process 2024-09-15T20:37:08.332000+00:00 self.save() 2024-09-15T20:37:08.332000+00:00 File "/opt/algorithm/process.py", line 230, in save 2024-09-15T20:37:08.332000+00:00 json.dump(self._case_results[0], f) 2024-09-15T20:37:08.332000+00:00 File "/usr/local/lib/python3.8/json/init.py", line 179, in dump 2024-09-15T20:37:08.332000+00:00 for chunk in iterable: 2024-09-15T20:37:08.332000+00:00 File "/usr/local/lib/python3.8/json/encoder.py", line 431, in _iterencode 2024-09-15T20:37:08.332000+00:00 yield from _iterencode_dict(o, _current_indent_level) 2024-09-15T20:37:08.332000+00:00 File "/usr/local/lib/python3.8/json/encoder.py", line 405, in _iterencode_dict 2024-09-15T20:37:08.332000+00:00 yield from chunks 2024-09-15T20:37:08.332000+00:00 File "/usr/local/lib/python3.8/json/encoder.py", line 325, in _iterencode_list 2024-09-15T20:37:08.332000+00:00 yield from chunks 2024-09-15T20:37:08.332000+00:00 File "/usr/local/lib/python3.8/json/encoder.py", line 405, in _iterencode_dict 2024-09-15T20:37:08.332000+00:00 yield from chunks 2024-09-15T20:37:08.332000+00:00 File "/usr/local/lib/python3.8/json/encoder.py", line 438, in _iterencode 2024-09-15T20:37:08.332000+00:00 o = _default(o) 2024-09-15T20:37:08.332000+00:00 File "/usr/local/lib/python3.8/json/encoder.py", line 179, in default 2024-09-15T20:37:08.332000+00:00 raise TypeError(f'Object of type {o.class.name} ' 2024-09-15T20:37:08.332000+00:00 TypeError: Object of type ndarray is not JSON serializable