Page 1 of 1

reproduce the paper's results

Posted: Tue Nov 05, 2024 4:46 pm
by jonathancheng
Hello,
I am trying to reproduce the paper's results using videos(LabValidation_withVideos) provided on the OpenCap website.
All the programs worked perfectly except for the labValidationVideosToKinematics.py. The error message shows that "Exception: ('All cameras are required for calibration and neutral pose.', 'All cameras are required for calibration and neutral pose.')" while I only change one line of the code since I am using jupyter notebook which should not affect the program.
Original Code:
55 repoDir = os.path.abspath(
56 os.path.join(os.path.dirname(os.path.abspath(__file__)),'../'))

My replacement:
repoDir = os.path.abspath(os.path.join(os.getcwd(), '../'))

May I know why is it happening or what should I do to fix this problem?

Thank you so much!

Best,
Jonathan Cheng

Re: reproduce the paper's results

Posted: Wed Nov 06, 2024 4:54 pm
by mpetrucc
Hi Jonathan,

When you are in the cwd, is that the opencap-core folder on your computer? That is what the code is expecting for repoDir. If this is incorrect, it will be looking the wrong folders.

Hope this helps,
Matt

Re: reproduce the paper's results

Posted: Thu Nov 07, 2024 6:24 pm
by jonathancheng
Hello Matt,
I think it refers to the correct path since I use the same code in other programs in the ReproducePaperResults folder and they all work well.
Currently, when I change the setup in to
cameraSetups = ['5-cameras'] (the default code is 2-cameras)
it shows different error message( as shown in the screenshot)

May I confirm with you that the two files need to download: the field study and the LabValidation_withVideos, where should I put them?
Should I collect them in a new established folder "Data" and put them in the opencap-core folder or ReproducePaperResults folder?

Thank you!