From 05a1f5e65139ef9236a8a67d0e8b5633a0ee6722 Mon Sep 17 00:00:00 2001 From: Antoine Falisse Date: Fri, 28 Jun 2024 16:49:07 -0700 Subject: [PATCH] clean up for PR --- Examples/changeSessionMetadata.py | 15 +++++++-------- Examples/reprocessSessions.py | 9 ++++----- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/Examples/changeSessionMetadata.py b/Examples/changeSessionMetadata.py index e03f46f0..eb5425ca 100644 --- a/Examples/changeSessionMetadata.py +++ b/Examples/changeSessionMetadata.py @@ -46,16 +46,15 @@ from utils import changeSessionMetadata -session_ids = ["6dc0721a-7457-4ce1-8523-577900b5399f"] +session_ids = ["0d46adef-62cb-455f-9ff3-8116717cc2fe"] # Dictionary of metadata fields to change (see sessionMetadata.yaml). newMetadata = { - 'camerastouse': ['all_available'] - # 'openSimModel':'LaiUhlrich2022_shoulder', - # 'posemodel':'hrnet', - # 'augmentermodel':'v0.3', - # 'filterfrequency':15, - # 'datasharing':'Share processed data and identified videos', - # 'scalingsetup': 'upright_standing_pose' + 'openSimModel':'LaiUhlrich2022_shoulder', + 'posemodel':'hrnet', + 'augmentermodel':'v0.3', + 'filterfrequency':15, + 'datasharing':'Share processed data and identified videos', + 'scalingsetup': 'upright_standing_pose' } changeSessionMetadata(session_ids,newMetadata) \ No newline at end of file diff --git a/Examples/reprocessSessions.py b/Examples/reprocessSessions.py index fe536940..37330ebd 100644 --- a/Examples/reprocessSessions.py +++ b/Examples/reprocessSessions.py @@ -55,7 +55,7 @@ # Enter the identifier(s) of the session(s) you want to reprocess. This is a list of one # or more session identifiers. The identifier is found as the 36-character string at the # end of the session url: app.opencap.ai/session/ -session_ids = ['6dc0721a-7457-4ce1-8523-577900b5399f'] +session_ids = ['23d52d41-69fe-47cf-8b60-838e4268dd50'] # Select which trials to reprocess. You can reprocess all trials in the session # by entering None in all fields below. The correct calibration and static @@ -68,7 +68,7 @@ calib_id = [] # None (auto-selected trial), [] (skip), or string of specific trial_id static_id = [] # None (auto-selected trial), [] (skip), or string of specific trial_id -dynamic_trialNames = ['test_2'] # None (all dynamic trials), [] (skip), or list of trial names +dynamic_trialNames = None # None (all dynamic trials), [] (skip), or list of trial names # Select which pose estimation model to use; options are 'OpenPose' and 'hrnet'. # If the same pose estimation model was used when collecting data with the web @@ -79,7 +79,7 @@ # selected 'hrnet' when collecting data with the web app. You can however re- # process data originally collected with 'hrnet' with 'OpenPose' if you have # installed OpenPose locally (see README.md for instructions). -poseDetector = 'hrnet' +poseDetector = 'OpenPose' # OpenPose only: # Select the resolution at which the videos are processed. There are no @@ -110,5 +110,4 @@ batchReprocess(session_ids,calib_id,static_id,dynamic_trialNames, poseDetector=poseDetector, resolutionPoseDetection=resolutionPoseDetection, - deleteLocalFolder=deleteLocalFolder, - cameras_to_use = ['all_available']) + deleteLocalFolder=deleteLocalFolder)