smplx pkl格式可视化
(图片来源网络,侵删)
smplx pkl格式可视化
import glob import os import pickle import torch import numpy as np from smplpytorch.pytorch.smpl_layer import SMPL_Layer from display_utils import display_model, display_model_continuous from matplotlib import pyplot as plt from matplotlib.animation import FuncAnimation from mpl_toolkits.mplot3d.art3d import Poly3DCollection def draw_skeleton(joints3D, kintree_table, ax=None, with_numbers=True): if ax is None: fig = plt.figure(frameon=False) ax = fig.add_subplot(111, projection='3d') else: ax = ax colors = [] left_right_mid = ['r', 'g', 'b'] kintree_colors = [2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 0, 1, 0, 1, 0, 1] for c in kintree_colors: colors &
(图片来源网络,侵删)
(图片来源网络,侵删)
文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。
还没有评论,来说两句吧...