Failed The algorithm failed on one or more cases.

Failed The algorithm failed on one or more cases.  

  By: 516936971 on Sept. 2, 2024, 3:56 p.m.

Dear Challenge Organizers,

I hope this message finds you well.

I encountered the following error while submitting my algorithm: "Failed. The algorithm failed on one or more cases." Unfortunately, I am unable to view the specific error message or logs, making it difficult for me to identify the cause of the failure.

Could you please assist me in identifying the reason for the validation failure, or provide any relevant log information? This would greatly help me in debugging and improving the algorithm.

Thank you for your assistance.

Re: Failed The algorithm failed on one or more cases.  

  By: zoomlin0801 on Sept. 3, 2024, 4:37 a.m.

你好朋友,以下做法希望对你有帮助:

①参照主办方提供的docker提交示例,将Dockerfile最后一行改为:CMD ["sh", "run.sh"] 然后再运行docker build等相关操作,通过相关操作进行本地调试,本地调试无误之后再将Dockerfile最后一行改为:ENTRYPOINT ["python", "inference.py"]

②确定你的docker文件在本地可以正常运行之后,如果提交到该网站进行测评仍报错,有一种可能是因为代码中有许多“print”的命令,这会使得你的程序运行时间超过要求时限,你可以将其注释掉,重新提交进行测试。

Re: Failed The algorithm failed on one or more cases.  

  By: 516936971 on Sept. 3, 2024, 7:46 a.m.

非常感谢您!! 我现在可以提交了!! 祝您一切顺利。

Thank you so much for your comment!! Now I can submit my docker! Best regard

 Last edited by: 516936971 on Sept. 3, 2024, 9:37 a.m., edited 1 time in total.

Re: Failed The algorithm failed on one or more cases.  

  By: 516936971 on Sept. 3, 2024, 9:35 a.m.

Hi everyone,

I have some other question about the input data and output data.

1. I would like to confirm whether all the test data consists of 3D images. 2. Should I save my results in the range [0, 1] or [0, 255]?

I would greatly appreciate any insights or confirmation on these points. Thank you in advance for your help!

Best regards, Yunheng

Re: Failed The algorithm failed on one or more cases.  

  By: YingC on Sept. 3, 2024, 2:52 p.m.

Hi Yunheng,

The test data consists of 3D images, and the output results should be binary, meaning they should be within the range [0, 1].

Best regards, Ying Chen

Re: Failed The algorithm failed on one or more cases.  

  By: 516936971 on Sept. 4, 2024, 5:05 a.m.

Hi Ying

Thank you for your reply!

Best regards, Yunheng

Re: Failed The algorithm failed on one or more cases.  

  By: bioAI on Sept. 25, 2024, 10:15 a.m.

Hi, Our method works well on validation phase, but got an erro on the test phase, "Failed The algorithm failed on one or more cases."

Do you may know why?

Re: Failed The algorithm failed on one or more cases.  

  By: bioAI on Sept. 25, 2024, 10:22 a.m.

Hi,

Our method works well on validation phase, but got an erro on the test phase, "Failed The algorithm failed on one or more cases."

Do you may know why?

best, BioAI

Re: Failed The algorithm failed on one or more cases.  

  By: zoomlin0801 on Sept. 26, 2024, 5:33 a.m.

你好: 朋友,我遇到的相同报错(Failed The algorithm failed on one or more cases)的解决办法:

  • ①查看“Algorithm Container Image”页面;
  • ②检查镜像的状态参数;
  • ③发现“Validation Errors ”,提示为:“This container image has already been uploaded. Please re-activate the existing container image or upload a new version.” 经检查,最后判断为该次docker镜像与之前某次提交的docker镜像Image SHA256雷同(虽然权重文件有更新);
  • ④解决办法:删除docker文件中确认不需要的文件,而后再次导出镜像,这样就能保证Image SHA256值唯一,再次提交便成功了。

祝你成功! ZoomLin

 Last edited by: zoomlin0801 on Sept. 26, 2024, 5:37 a.m., edited 1 time in total.

Re: Failed The algorithm failed on one or more cases.  

  By: bioAI on Sept. 26, 2024, 9:18 a.m.

你好,ZoomLin,

感谢你的回复。Image SHA256确认了,值是唯一的。

我上传的docker在“Preliminary Test Phase”运行成功的。但是在“Final test phase”就报错了(Failed The algorithm failed on one or more cases)。线下,我也用200200200的数据进行验证了,可以运行,时间20s左右。

但是Final test phase,一直在报错。实在是不理解

Re: Failed The algorithm failed on one or more cases.  

  By: XunDJ on Sept. 26, 2024, 10:54 a.m.

你好,BioAI, 我之前在初始提交也遇到这个报错,当时是因为没有把output转换为np.uint8

Re: Failed The algorithm failed on one or more cases.  

  By: bioAI on Sept. 27, 2024, 2:21 a.m.

感谢大家的建议。我们Final test遇到的报错是“RuntimeError: applying transform 【monai.transforms.utility.array.EnsureChannelFirst object at 0x7f791820da50】”,这个问题,在线下和validation phase都没遇到。为了解决这个问题,做了几个修改:

1)根据ZoomLin的建议,删掉本地旧的docker image,然后重新编译。 2)自己写了个模块来替换 ‘EnsureChannelFirst’

anyway, 最新上传Final test通过了。感谢!

 Last edited by: bioAI on Sept. 27, 2024, 2:22 a.m., edited 1 time in total.