Skip to content

Commit

Permalink
clean up for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinefalisse committed Jun 28, 2024
1 parent 17853b6 commit 05a1f5e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
15 changes: 7 additions & 8 deletions Examples/changeSessionMetadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
9 changes: 4 additions & 5 deletions Examples/reprocessSessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_id>
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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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)

0 comments on commit 05a1f5e

Please sign in to comment.