Error in changeSessionMetadata.py

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
Basil Achermann
Posts: 4
Joined: Wed Nov 15, 2023 12:42 am

Error in changeSessionMetadata.py

Post by Basil Achermann » Wed Nov 15, 2023 12:49 am

Hi all,

I tried to update my recordings to the new marker augmenter model 0.3.
For this I followed the steps on this video: https://www.youtube.com/watch?v=Mk3KPo79_eQ
However in the first step (changeSessionMetadata.py) it already fails.

Output:
Could not find openSimModel in existing metadata, trying to add it.
Added LaiUhlrich2022_shoulder to settings in metadata
Could not find augmentermodel in existing metadata, trying to add it.
Added v0.3 to settings in metadata
Changing metadata failed.


Any idea what could have gone wrong or how to fix it?
Many thanks in advance.
Basil
Attachments
Group 1.png
Group 1.png (52.06 KiB) Viewed 536 times

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

Re: Error in changeSessionMetadata.py

Post by Antoine Falisse » Wed Nov 15, 2023 4:48 pm

hi,

Could you try running 1. here before running the script?
https://github.com/stanfordnmbl/opencap ... popencapai

keep us posted,
Antoine

User avatar
Basil Achermann
Posts: 4
Joined: Wed Nov 15, 2023 12:42 am

Re: Error in changeSessionMetadata.py

Post by Basil Achermann » Thu Nov 16, 2023 12:45 am

Hi Antoine,

thanks for the quick reply.

You mean?
1) Authenticate and save an environment variable by running Examples/createAuthenticationEnvFile.py. You can proceed without this, but you will be required to log in every time you run a script.

I did and tried to run changeSessionMetadata.py again.
It still returns the same log in the terminal, just without asking for login credentials.

Best, Basil

User avatar
Scott Uhlrich
Posts: 124
Joined: Tue Jan 20, 2015 4:29 pm

Re: Error in changeSessionMetadata.py

Post by Scott Uhlrich » Thu Nov 16, 2023 11:29 am

can you provide the session id so we can reproduce?

Thanks,
scott

User avatar
Basil Achermann
Posts: 4
Joined: Wed Nov 15, 2023 12:42 am

Re: Error in changeSessionMetadata.py

Post by Basil Achermann » Thu Nov 16, 2023 2:16 pm

72466198-253e-46f6-8ec5-384e14bc1df6

Thanks!

User avatar
Scott Uhlrich
Posts: 124
Joined: Tue Jan 20, 2015 4:29 pm

Re: Error in changeSessionMetadata.py

Post by Scott Uhlrich » Thu Nov 16, 2023 4:03 pm

It worked fine for me. Have you pulled the latest version of the code from github?

User avatar
Basil Achermann
Posts: 4
Joined: Wed Nov 15, 2023 12:42 am

Re: Error in changeSessionMetadata.py

Post by Basil Achermann » Fri Nov 17, 2023 8:07 am

Hi all

Thank you very much! I had to setup my conda environment again.
changeSessionMetadata.py works fine now.

Also reprocessSessions.py looks but except for the inverse kinematics.
There I get "tuple index out of range"

OpenSimData -> Kinematics results in an empty folder.
Attachments
Group 1.png
Group 1.png (104.85 KiB) Viewed 452 times

User avatar
Scott Uhlrich
Posts: 124
Joined: Tue Jan 20, 2015 4:29 pm

Re: Error in changeSessionMetadata.py

Post by Scott Uhlrich » Fri Nov 17, 2023 12:41 pm

Try dropping breakpoints in the main.py function prior to inverse kinematics to see what is happening.

POST REPLY