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
reproduce the paper's results
- Jonathan Cheng
- Posts: 8
- Joined: Wed Aug 28, 2024 7:11 pm
reproduce the paper's results
- Attachments
-
- error msg screenshot
- Screenshot 2024-11-05 164434.png (57.58 KiB) Viewed 266 times
- Matt Petrucci
- Posts: 216
- Joined: Fri Feb 24, 2012 11:49 am
Re: reproduce the paper's results
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
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
- Jonathan Cheng
- Posts: 8
- Joined: Wed Aug 28, 2024 7:11 pm
Re: reproduce the paper's results
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!
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 using 5-cameras
- error msg.png (100.24 KiB) Viewed 214 times