reproduce the paper's results

New project for OpenCap, which is a new software package to estimate 3D human movement dynamics from smartphone videos. OpenCap strongly relies on OpenSim.
POST REPLY
User avatar
Jonathan Cheng
Posts: 8
Joined: Wed Aug 28, 2024 7:11 pm

reproduce the paper's results

Post by Jonathan Cheng » Tue Nov 05, 2024 4:46 pm

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
Attachments
Screenshot 2024-11-05 164434.png
error msg screenshot
Screenshot 2024-11-05 164434.png (57.58 KiB) Viewed 269 times

User avatar
Matt Petrucci
Posts: 216
Joined: Fri Feb 24, 2012 11:49 am

Re: reproduce the paper's results

Post by Matt Petrucci » Wed Nov 06, 2024 4:54 pm

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

User avatar
Jonathan Cheng
Posts: 8
Joined: Wed Aug 28, 2024 7:11 pm

Re: reproduce the paper's results

Post by Jonathan Cheng » Thu Nov 07, 2024 6:24 pm

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!
Attachments
error msg.png
error msg using 5-cameras
error msg.png (100.24 KiB) Viewed 217 times

POST REPLY