The algorithm failed in one or more cases.

The algorithm failed in one or more cases.  

  By: kwongitack on March 22, 2024, 2:26 a.m.

I uploaded and ran the example data using the try-out algorithm and it was successful. but when I submitted it, I got an error saying "The algorithm failed in one or more cases." I don't know why. Can someone please help me?

Re: The algorithm failed in one or more cases.  

  By: yeganeh.madadi on March 26, 2024, 5:55 p.m.

Dear kwongitack,

Your error is: "ValueError: attempt to get argmax of an empty sequence"

The log file is as follows:

2024-03-22T09:14:12.226000+00:00 Traceback (most recent call last):

2024-03-22T09:14:12.226000+00:00 File "/opt/app/inference.py", line 154, in

2024-03-22T09:14:12.226000+00:00 raise SystemExit(run())

2024-03-22T09:14:12.226000+00:00 File "/opt/app/inference.py", line 123, in run

2024-03-22T09:14:12.227000+00:00 disc_info = detect_disc(model_disc, image_fov)

2024-03-22T09:14:12.227000+00:00 File "/opt/app/inference.py", line 51, in detect_disc

2024-03-22T09:14:12.227000+00:00 max_idx = np.argmax(total_r)

2024-03-22T09:14:12.227000+00:00 File "/opt/conda/lib/python3.10/site-packages/numpy/core/fromnumeric.py", line 1229, in argmax

2024-03-22T09:14:12.227000+00:00 return _wrapfunc(a, 'argmax', axis=axis, out=out, **kwds)

2024-03-22T09:14:12.227000+00:00 File "/opt/conda/lib/python3.10/site-packages/numpy/core/fromnumeric.py", line 56, in _wrapfunc

2024-03-22T09:14:12.227000+00:00 return _wrapit(obj, method, args, *kwds)

2024-03-22T09:14:12.227000+00:00 File "/opt/conda/lib/python3.10/site-packages/numpy/core/fromnumeric.py", line 45, in _wrapit

2024-03-22T09:14:12.227000+00:00 result = getattr(asarray(obj), method)(args, *kwds)

2024-03-22T09:14:12.227000+00:00 ValueError: attempt to get argmax of an empty sequence

 Last edited by: yeganeh.madadi on March 26, 2024, 5:56 p.m., edited 1 time in total.