We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 304689e + 23cc211 commit 864f89cCopy full SHA for 864f89c
Pose2Sim/Utilities/json_display_without_img.py
@@ -66,6 +66,8 @@ def json_display_without_img_func(**args):
66
67
json_folder = os.path.realpath(args.get('json_folder'))
68
json_fnames = [f for f in os.listdir(json_folder) if os.path.isfile(os.path.join(json_folder, f))]
69
+ json_fnames.sort(key=lambda f: int(f.split('_')[0])) # sort by frame number
70
+
71
output_img_folder = args.get('output_img_folder')
72
if output_img_folder==None:
73
output_img_folder = os.path.join(json_folder+'_img')
0 commit comments