How To test my container? ¶
By: tchaye59 on April 21, 2023, 12:43 p.m.
According to https://github.com/gasperpodobnik/HanSeg2023Algorithm#test 5. Testing your container To test your container, you should run test.bat (on Windows) or test.sh (on Linux, might require sudo priviledges). This will run the test image(s) provided in the test folder through your model.
My test folder looks like this : test/images/case_01
To test my image , i run :
docker run hanseg2023algorithm -v ./test/:/input/
However , I alway end up with this error:
self.load() File "/home/user/.local/lib/python3.8/site-packages/evalutils/evalutils.py", line 123, in load self._cases[key] = self._load_cases( File "/opt/app/custom_algorithm.py", line 184, in _load_cases raise FileLoaderError( evalutils.exceptions.FileLoaderError: Could not load any files in /input/images with .
It seems like the evalluation api can't load "case_01_IMG_CT.nrrd" and "case_01_IMG_MR_T1.nrrd" located inside test/images/case_01
Note that running test.sh gives the following error:
hanseg2023algorithm-output-60d74113d4402b65764e2ec046e16388 exec /usr/local/bin/python: operation not permitted cat: /output/results.json: No such file or directory Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "", line 1, in FileNotFoundError: [Errno 2] No such file or directory: '/output/results.json' Expected output was not found... hanseg2023algorithm-output-60d74113d4402b65764e2ec046e16388
This is my first time competing on grand-challenge so sorry if I still don't understand the submission process.