File size: 342 Bytes
96562fe
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import torch

from manopth.demo import generate_random_hand


def test_generate_random_hand():
    batch_size = 3
    hand_info = generate_random_hand(batch_size=batch_size, ncomps=6)
    verts = hand_info['verts']
    joints = hand_info['joints']
    assert verts.shape == (batch_size, 778, 3)
    assert joints.shape == (batch_size, 21, 3)