What video file name gets passed to `VideoLoader.load()` as fname with `python -m process` command? ¶
By: bilalUWE on Aug. 28, 2022, 12:11 a.m.
Hi Organizers,
What goes into the VideoLoader.load()
?
1. video file name (endoscopic-robotic-surgery-video.mp4)
only or
2. fully qualified video file name (/input/endoscopic-robotic-surgery-video.mp4)
or
3. just the folder name (/input)
I am tracing to the error Could not find an int in the string 'endoscopic-robotic-surgery-video'.
which occurs when VideoLoader.load()
doesn't find the video file for the path in fname
. I am getting the following 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 222, in
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 /input
with <main.VideoLoader object at 0x7f91cb520310>.
This shows that VideoLoader.load()
function receives only the folder name /input
with python -m process
call. Check the last line in the error message. Is this the correct behaviour. I assumed a fully qualitifed video file name will be passed to the VideoLoader.load()
automatically which seems wrong.
If that is true then do we have to check the folder for the video named endoscopic-robotic-surgery-video.mp4
as expected.
Any ideas to resolve this error will be much appreciated as this error is the only one stopping us to make one successful submission.
Many Thanks and
Kind Regards, Bilal