Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'nJoints' when running quickstart example #250

Closed
canghaiyunfan opened this issue Dec 30, 2022 · 2 comments
Closed

KeyError: 'nJoints' when running quickstart example #250

canghaiyunfan opened this issue Dec 30, 2022 · 2 comments

Comments

@canghaiyunfan
Copy link

when I run the example code, get error as follows:
python3 apps/demo/mv1p.py ./zju-ls-feng --out ./zju-ls-feng/output/manor --vis_det --vis_repro --undis --sub_vis 1 7 13 19 --body handr --model manor --gender male --vis_smpl

Demo code for multiple views and one person:

- Input : /data/code/EasyMocap/zju-ls-feng => 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23
- Output: /data/code/EasyMocap/zju-ls-feng/output/manol
- Body  : manol=>male, handl

triangulation: 0%| | 0/800 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/data/code/EasyMocap/apps/demo/mv1p.py", line 116, in
mv1pmf_skel(dataset, check_repro=True, args=args)
File "/data/code/EasyMocap/apps/demo/mv1p.py", line 43, in mv1pmf_skel
dataset.vis_detections(images, annots, nf, sub_vis=args.sub_vis)
File "/data/code/EasyMocap/easymocap/dataset/mv1pmf.py", line 58, in vis_detections
return super().vis_detections(images, lDetections, nf, sub_vis=sub_vis)
File "/data/code/EasyMocap/easymocap/dataset/base.py", line 515, in vis_detections
return self.writer.vis_keypoints2d_mv(images, lDetections, outname=outname, vis_id=True)
File "/data/code/EasyMocap/easymocap/mytools/writer.py", line 51, in vis_keypoints2d_mv
plot_keypoints(img, keypoints, pid=pid, config=self.config, use_limb_color=False, lw=2)
File "/data/code/EasyMocap/easymocap/mytools/vis_base.py", line 138, in plot_keypoints
for i in range(min(len(points), config['nJoints'])):
KeyError: 'nJoints'

@stevechaw
Copy link

Did you solve this?

@chingswy
Copy link
Contributor

Please try the v0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants