Issue with running test.sh

Issue with running test.sh  

  By: juseonghan on Sept. 10, 2023, 9:34 p.m.

After running bash test.sh, I get the following error:

evalutils.exceptions.FileLoaderError: Could not load any files in test with <__main__.VideoLoader object at 0x7ff73dfc4040>. cat: /output/results.json: No such file or directory Expecting value: line 1 column 1 (char 0) test.sh: line 28: python:3.9-slim: command not found Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "<string>", line 1, in <module> FileNotFoundError: [Errno 2] No such file or directory: '/output/surgical-tools.json' Expected output was not found... surgtoolloc_det-output-49b063618e046569599e4efdcdb9905c

Can anyone help me with this? I'm unsure how to debug this.

Re: Issue with running test.sh  

  By: a.yamada0703 on Sept. 11, 2023, 1:14 a.m.

I guess you mentioned this code.

You will change it to bellow code, it works.

docker run --rm \
        -v surgtoolloc_det-output-$VOLUME_SUFFIX:/output/ \
        python:3.9-slim bash -c "cat /output/surgical-tools.json | python -m json.tool"

Besides, the repository doesn't have expected_output_detection.json. It was deleted on this commit, so you can download from here.

Re: Issue with running test.sh  

  By: juseonghan on Sept. 11, 2023, 4:06 p.m.

Hi, thank you for your help. After I changed line 25, I still get an error.

Traceback (most recent call last): File "/opt/conda/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/opt/conda/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/opt/algorithm/process.py", line 294, in <module> Surgtoolloc_det().process() File "/home/algorithm/.local/lib/python3.10/site-packages/evalutils/evalutils.py", line 181, in process self.load() File "/home/algorithm/.local/lib/python3.10/site-packages/evalutils/evalutils.py", line 123, in load self._cases[key] = self._load_cases( File "/home/algorithm/.local/lib/python3.10/site-packages/evalutils/evalutils.py", line 157, in _load_cases raise FileLoaderError( evalutils.exceptions.FileLoaderError: Could not load any files in test with <__main__.VideoLoader object at 0x7fcbe94a4040>. cat: /output/surgical-tools.json: No such file or directory Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "<string>", line 1, in <module> FileNotFoundError: [Errno 2] No such file or directory: '/output/surgical-tools.json' Expected output was not found... surgtoolloc_det-output-33f491b0d4d1143d8d02a61058e4d3fa

I'm unsure what I'm running incorrectly - test.sh should be working correctly prior to submission, correct?

Re: Issue with running test.sh  

  By: aneeqzia_isi on Sept. 11, 2023, 7:23 p.m.

Hi juseonghan,

Please note that the test.sh is there to test your container locally - you will probably need to make changes to the script in order for it to work properly (e.g paths to files). Please take a more closer look at the documentation on the github algorithm container repo (specifically points 3-5 under "Adapting the container to your algorithm") in https://github.com/aneeqzia-isi/surgtoolloc2022-category-2/tree/5a04fd6bdaf9f1dfbfc4f1faf8facee3b4e45a31. There would be small changes needed to change from local testing to submitting on grand challenge (again, please see the documentation closely).

Best, SurgToolLoc Organizing Committee