davidpagnon / pose2sim

Markerless kinematics, from OpenPose to OpenSim
https://github.com/perfanalytics/pose2sim
BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

Index error when running Pose2Sim.track2D() on Linux #3

Closed lambdaloop closed 2 years ago

lambdaloop commented 2 years ago

When running Pose2Sim.track2D() within the Demo directory, I get the following error:

    250 frames_range = config.get('project').get('frames_range')
    252 calib_dir = os.path.join(project_dir, calib_folder_name)
--> 253 calib_file = glob.glob(calib_dir+'\*.toml')[0]
    254 pose_dir = os.path.join(project_dir, pose_folder_name)
    255 poseTracked_dir = os.path.join(project_dir, poseTracked_folder_name)

IndexError: list index out of range

It seems that the +"*.toml" at that line should be replaced with os.path.join as in the neighboring lines. This should be replaced for both track_2d_all and recap_tracking functions.

lambdaloop commented 2 years ago

This is an issue within the triangulate_3d.py file as well.

davidpagnon commented 2 years ago

Thank you for pointing out this (stupid) mistake!

davidpagnon commented 2 years ago

Copied to new repository: https://github.com/perfanalytics/pose2sim/issues/7