Skip to content

Commit

Permalink
custom rtmlib version until pull request is accepted
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpagnon committed Jan 21, 2025
1 parent 2b8a721 commit 0386bc7
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions Pose2Sim/Demo_Batch/Config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ pose_model = 'Body_with_feet' #With RTMLib:
mode = 'balanced' # 'lightweight', 'balanced', 'performance',
# or """{dictionary}""" (see below)
# A dictionary (WITHIN THREE DOUBLE QUOTES) allows you to manually select the person detection (if top_down approach) and/or pose estimation models (see https://github.com/Tau-J/rtmlib).
# Models can be local paths or URLs.
# Make sure the input_sizes are within triple quotes, and that they are in the opposite order from the one in the model path (for example, it would be [192,256] for rtmpose-m_simcc-body7_pt-body7-halpe26_700e-256x192-4d3e73dd_20230605.zip).
# If your pose_model is not provided in skeletons.py, you may have to create your own one (see example at the end of the file).
# Example, equivalent to mode='balanced':
Expand Down
1 change: 1 addition & 0 deletions Pose2Sim/Demo_Batch/Trial_1/Config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
# mode = 'balanced' # 'lightweight', 'balanced', 'performance',
# # or """{dictionary}""" (see below)
# # A dictionary (WITHIN THREE DOUBLE QUOTES) allows you to manually select the person detection (if top_down approach) and/or pose estimation models (see https://github.com/Tau-J/rtmlib).
# # Models can be local paths or URLs.
# # Make sure the input_sizes are within triple quotes, and that they are in the opposite order from the one in the model path (for example, it would be [192,256] for rtmpose-m_simcc-body7_pt-body7-halpe26_700e-256x192-4d3e73dd_20230605.zip).
# # If your pose_model is not provided in skeletons.py, you may have to create your own one (see example at the end of the file).
# # Example, equivalent to mode='balanced':
Expand Down
1 change: 1 addition & 0 deletions Pose2Sim/Demo_Batch/Trial_2/Config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ participant_mass = [70.0, 63.5] # float (eg 70.0), or list of floats (eg [70
# mode = 'balanced' # 'lightweight', 'balanced', 'performance',
# # or """{dictionary}""" (see below)
# # A dictionary (WITHIN THREE DOUBLE QUOTES) allows you to manually select the person detection (if top_down approach) and/or pose estimation models (see https://github.com/Tau-J/rtmlib).
# # Models can be local paths or URLs.
# # Make sure the input_sizes are within triple quotes, and that they are in the opposite order from the one in the model path (for example, it would be [192,256] for rtmpose-m_simcc-body7_pt-body7-halpe26_700e-256x192-4d3e73dd_20230605.zip).
# # If your pose_model is not provided in skeletons.py, you may have to create your own one (see example at the end of the file).
# # Example, equivalent to mode='balanced':
Expand Down
1 change: 1 addition & 0 deletions Pose2Sim/Demo_MultiPerson/Config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ pose_model = 'Body_with_feet' #With RTMLib:
mode = 'balanced' # 'lightweight', 'balanced', 'performance',
# or """{dictionary}""" (see below)
# A dictionary (WITHIN THREE DOUBLE QUOTES) allows you to manually select the person detection (if top_down approach) and/or pose estimation models (see https://github.com/Tau-J/rtmlib).
# Models can be local paths or URLs.
# Make sure the input_sizes are within triple quotes, and that they are in the opposite order from the one in the model path (for example, it would be [192,256] for rtmpose-m_simcc-body7_pt-body7-halpe26_700e-256x192-4d3e73dd_20230605.zip).
# If your pose_model is not provided in skeletons.py, you may have to create your own one (see example at the end of the file).
# Example, equivalent to mode='balanced':
Expand Down
1 change: 1 addition & 0 deletions Pose2Sim/Demo_SinglePerson/Config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ pose_model = 'Body_with_feet' #With RTMLib:
mode = 'balanced' # 'lightweight', 'balanced', 'performance',
# or """{dictionary}""" (see below)
# A dictionary (WITHIN THREE DOUBLE QUOTES) allows you to manually select the person detection (if top_down approach) and/or pose estimation models (see https://github.com/Tau-J/rtmlib).
# Models can be local paths or URLs.
# Make sure the input_sizes are within triple quotes, and that they are in the opposite order from the one in the model path (for example, it would be [192,256] for rtmpose-m_simcc-body7_pt-body7-halpe26_700e-256x192-4d3e73dd_20230605.zip).
# If your pose_model is not provided in skeletons.py, you may have to create your own one (see example at the end of the file).
# Example, equivalent to mode='balanced':
Expand Down
4 changes: 2 additions & 2 deletions Pose2Sim/Utilities/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ def test_workflow(self, mock_input):
# Step by step
Pose2Sim.calibration(config_dict)
Pose2Sim.poseEstimation(config_dict)
# Pose2Sim.synchronization(config_dict) # No synchronization for multi-person for now
# Pose2Sim.synchronization(config_dict) # No test for synchronization for multi-person
Pose2Sim.personAssociation(config_dict)
Pose2Sim.triangulation(config_dict)
Pose2Sim.filtering(config_dict)
Pose2Sim.markerAugmentation(config_dict)
# Pose2Sim.markerAugmentation(config_dict) # Marker augmentation requires markers that are not provided by RTMO: ['RHeel', 'RBigToe', 'RSmallToe', 'LSmallToe', 'LHeel', 'LBigToe']
Pose2Sim.kinematics(config_dict)

# Run all
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ install_requires =
c3d
tensorflow
# torch
rtmlib @ git+https://github.com/davidpagnon/rtmlib_Pose2Sim.git@7ff790a757e9a1bc964e1f9395c965ae8b078e57
# rtmlib @ git+https://github.com/davidpagnon/rtmlib_Pose2Sim.git@7ff790a757e9a1bc964e1f9395c965ae8b078e57
rtmlib_pose2sim
# onnxruntime
openvino
opencv-python
Expand Down

0 comments on commit 0386bc7

Please sign in to comment.