pyskl icon indicating copy to clipboard operation
pyskl copied to clipboard

vis_skeleton.ipynb 3D visualization Error

Open Sangmin-github opened this issue 1 year ago • 3 comments

I'm currently using Ubuntu 22.04.2 LTS and I've followed installation procedure shown in README.md When I execute vis_skeleton.ipynb to visualize 3D skeletons I get this error. Does anyone have any solution for this?

Here's the code executed. Lines related to 2D skeleton are omitted.

import glob from pyskl.smp import * from pyskl.utils.visualize import Vis3DPose, Vis2DPose from mmcv import load, dump

download_file('http://download.openmmlab.com/mmaction/pyskl/demo/annotations/ntu60_samples_3danno.pkl', 'ntu60_3d.pkl')

from pyskl.datasets.pipelines import PreNormalize3D annotations = load('ntu60_3d.pkl') index = 1 anno = annotations[index] anno = PreNormalize3D()(anno) # * Need Pre-Normalization before Visualization vid = Vis3DPose(anno, layout='nturgb+d', fps=12, angle=(30, 45), fig_size=(8, 8), with_grid=False) vid.write_videofile("3Dvisualized.mp4")

Screenshot from 2023-06-15 11-08-39

I've tried changing .ipynb to .py with the same code but in that case I get different error like this.

Screenshot from 2023-06-15 11-12-14

Sangmin-github avatar Jun 15 '23 02:06 Sangmin-github

https://stackoverflow.com/questions/68032884/getting-typeerror-must-be-real-number-not-nonetype-whenever-trying-to-run-wr

Morris-Lucifer avatar Sep 14 '23 12:09 Morris-Lucifer

I have the same error.

Fujiry0 avatar Sep 30 '23 13:09 Fujiry0

Same here.

MengZhongKuan avatar Nov 10 '23 15:11 MengZhongKuan