kennymckormick / pyskl

A toolbox for skeleton-based action recognition.
Apache License 2.0
950 stars 181 forks source link

diving48 extract skeleton problem #184

Open tribeband opened 1 year ago

tribeband commented 1 year ago

The command is: python tools/data/custom_2d_skeleton.py --non-dist --video-list examples/extract_diving48_skeleton/diving48.list --out examples/extract_diving48_skeleton/diving48_annos.pkl

screens error:

Traceback (most recent call last): File "E:\DL\git\3DAction\pyskl\tools\data\custom_2d_skeleton.py", line 202, in main() File "E:\DL\git\3DAction\pyskl\tools\data\custom_2d_skeleton.py", line 177, in main anno = pose_inference(anno, pose_model, frames, det_results, compress=args.compress) File "E:\DL\git\3DAction\pyskl\tools\data\custom_2d_skeleton.py", line 85, in pose_inference kp[j, i] = item['keypoints'] TypeError: string indices must be integers

seems it is because to enumerate the dict pose, the items is not able to operate with keys and vales.