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)
def random_scale_params(): ranges = np.array([[0.7, 1.3]]) return generate_random(ranges).item()
def random_cam_params(): ranges = np.array([[-0.2, 0.2], [-0.2, 0.2]]) return generate_random(ranges)
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)
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)
def random_shape_params(): ranges = np.zeros((100, 2)) ranges[:, 0] = -2.0 ranges[:, 1] = 2.0 return generate_random(ranges)