Reprocessing Trials Error

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
Jeffrey Turner
Posts: 10
Joined: Wed Feb 08, 2023 6:59 am

Reprocessing Trials Error

Post by Jeffrey Turner » Mon Jul 03, 2023 10:22 am

I'm running into issues with running the pipeline locally for reprocessing trials, I've tried a number of trials and I still get the same errors. I believe I followed all the install and c:\ffmpeg\bins steps outlined at https://github.com/stanfordnmbl/opencap-core. Is there additional troubleshooting guidance or possibly a video walkthrough of the install? Thank you!

I get the following error:
Load extrinsics for Cam0 - already existing Load extrinsics for Cam1 - already existing Running OpenPose for Cam0 Dynamic trial failed. No such file or directory Downloading calibration for Cam0 Downloading calibration for Cam1 'ffmpeg' is not recognized as an internal or external command, operable program or batch file.

Trials to be reprocessed
f6d8e163-5402-465a-aced-66f929956d15
c5d9c88e-757e-495b-9051-706afd584ff3
c56e4984-1073-476b-962b-9836b4de9dd0
29151d25-0910-49c9-a4ed-2310187a0a35

User avatar
Antoine Falisse
Posts: 438
Joined: Wed Jan 07, 2015 2:21 am

Re: Reprocessing Trials Error

Post by Antoine Falisse » Mon Jul 03, 2023 12:55 pm

Hey, it seems like it does not find ffmpeg. Did you activate your environment before running the script? Are you running the script from a terminal window or from an IDE (like Spyder or Visual Studio Code)?

User avatar
Jeffrey Turner
Posts: 10
Joined: Wed Feb 08, 2023 6:59 am

Re: Reprocessing Trials Error

Post by Jeffrey Turner » Tue Jul 04, 2023 4:44 am

I believe I activated the environment in line with the instructions via the terminal. Then was running the script via Spyder.

User avatar
Antoine Falisse
Posts: 438
Joined: Wed Jan 07, 2015 2:21 am

Re: Reprocessing Trials Error

Post by Antoine Falisse » Thu Jul 06, 2023 9:51 am

Are you using mac? I know the environment does not always get activated in Spyder if you are on mac

User avatar
Jeffrey Turner
Posts: 10
Joined: Wed Feb 08, 2023 6:59 am

Re: Reprocessing Trials Error

Post by Jeffrey Turner » Thu Jul 06, 2023 1:37 pm

This was on a Windows PC.

User avatar
Antoine Falisse
Posts: 438
Joined: Wed Jan 07, 2015 2:21 am

Re: Reprocessing Trials Error

Post by Antoine Falisse » Fri Jul 07, 2023 9:29 am

Okay, two tests to do:

1. Could you run reprocessSession.py from the terminal instead of from Spyder? To do so, launch an anaconda prompt, activate your environment (conda activate ...), and then run the code (python reprocessSession.py). If you are still running into bugs then 2.

2. Could you check if ffmpeg is in your environment? To do so, launch an anaconda prompt, activate your environment (conda activate ...), and then run conda list. You should get a list with all the packages. Do you see ffmpeg there?

Here is a video that shows how to do that: https://drive.google.com/file/d/1bBoR0d ... sp=sharing

Keep me posted,
Antoine

POST REPLY