Exemplo n.º 1
0
def random_expression_params():
    ranges = np.array([[-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0],
                       [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0],
                       [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0],
                       [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0],
                       [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0],
                       [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0],
                       [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0],
                       [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0],
                       [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0],
                       [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0],
                       [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0],
                       [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0], [-2.0, 2.0],
                       [-2.0, 2.0], [-2.0, 2.0]])
    return generate_random(ranges)
Exemplo n.º 2
0
def random_scale_params():
    ranges = np.array([[0.7, 1.3]])
    return generate_random(ranges).item()
Exemplo n.º 3
0
def random_cam_params():
    ranges = np.array([[-0.2, 0.2], [-0.2, 0.2]])
    return generate_random(ranges)
Exemplo n.º 4
0
def random_neck_pose_params():
    radian = np.pi / 180.0
    ranges = np.array([[-25 * radian,
                        25 * radian], [-70 * radian, 70 * radian],
                       [-30 * radian, 30 * radian]])
    return generate_random(ranges)
Exemplo n.º 5
0
def random_pose_params():
    radian = np.pi / 180.0
    ranges = np.array([[-20 * radian, 20 * radian],
                       [-30 * radian, 30 * radian], [0.0, 0.0], [0.0, 0.3],
                       [0.0, 0.0], [0.0, 0.0]])
    return generate_random(ranges)
Exemplo n.º 6
0
def random_shape_params():
    ranges = np.zeros((100, 2))
    ranges[:, 0] = -2.0
    ranges[:, 1] = 2.0
    return generate_random(ranges)