File size: 520 Bytes
67a127c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import numpy as np

from .recovery import recover_joint_positions
from ..tools.render_skeleton import get_smpl22_chains, render_skeleton_frames


def render_frames(motion: np.ndarray) -> list:
    """Render 272D MotionStreamer motion features to image frames.

    Args:
        motion: (T, 272) denormalized motion features.

    Returns:
        list of np.ndarray images (H, W, 3), uint8.
    """
    joints = recover_joint_positions(motion)
    return render_skeleton_frames(data=joints, chains=get_smpl22_chains())