Skip to content

Commit

Permalink
Merge pull request #77 from rlagnsals/patch-1
Browse files Browse the repository at this point in the history
sort by frame number.
  • Loading branch information
davidpagnon authored Mar 6, 2024
2 parents 304689e + 23cc211 commit 864f89c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Pose2Sim/Utilities/json_display_without_img.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def json_display_without_img_func(**args):

json_folder = os.path.realpath(args.get('json_folder'))
json_fnames = [f for f in os.listdir(json_folder) if os.path.isfile(os.path.join(json_folder, f))]
json_fnames.sort(key=lambda f: int(f.split('_')[0])) # sort by frame number

output_img_folder = args.get('output_img_folder')
if output_img_folder==None:
output_img_folder = os.path.join(json_folder+'_img')
Expand Down

0 comments on commit 864f89c

Please sign in to comment.