pyskl
pyskl copied to clipboard
vis_skeleton.ipynb 3D visualization Error
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")
I've tried changing .ipynb to .py with the same code but in that case I get different error like this.
https://stackoverflow.com/questions/68032884/getting-typeerror-must-be-real-number-not-nonetype-whenever-trying-to-run-wr
I have the same error.
Same here.