tests.pose_test module

Classes:

TestPose([methodName])

A suite of tests for the Pose object.

TestPoseNumpyPoseBody([methodName])

Testcases for Pose objects containing NumPy PoseBody data.

TestPoseTensorflowPoseBody([methodName])

Tests for Pose objects containing TensorFlow PoseBody data.

class tests.pose_test.TestPose(methodName='runTest')[source]

Bases: TestCase

A suite of tests for the Pose object.

Methods:

test_pose_object_should_be_callable()

Tests if the Pose object is callable.

test_pose_object_should_be_callable()[source]

Tests if the Pose object is callable.

class tests.pose_test.TestPoseNumpyPoseBody(methodName='runTest')[source]

Bases: TestCase

Testcases for Pose objects containing NumPy PoseBody data.

Methods:

test_pose_numpy_posebody_frame_dropout_normal_eager_mode_num_frames_not_zero()

Tests if frame dropout using normal distribution in Pose object with NumPy PoseBody preserves frame count.

test_pose_numpy_posebody_frame_dropout_uniform_eager_mode_num_frames_not_zero()

Tests if frame dropout using uniform distribution in Pose object with NumPy PoseBody preserves frame count.

test_pose_numpy_posebody_normalize_preserves_shape()

Tests if the normalization of Pose object with NumPy PoseBody preserves array shape.

test_pose_numpy_posebody_frame_dropout_normal_eager_mode_num_frames_not_zero()[source]

Tests if frame dropout using normal distribution in Pose object with NumPy PoseBody preserves frame count.

test_pose_numpy_posebody_frame_dropout_uniform_eager_mode_num_frames_not_zero()[source]

Tests if frame dropout using uniform distribution in Pose object with NumPy PoseBody preserves frame count.

test_pose_numpy_posebody_normalize_preserves_shape()[source]

Tests if the normalization of Pose object with NumPy PoseBody preserves array shape.

class tests.pose_test.TestPoseTensorflowPoseBody(methodName='runTest')[source]

Bases: TestCase

Tests for Pose objects containing TensorFlow PoseBody data.

Methods:

test_pose_frame_dropout_normal_can_be_used_in_tf_dataset_map()

Tests if the frame_dropout_normal method of Pose object can be used within a tf.data.Dataset map operation.

test_pose_frame_dropout_uniform_can_be_used_in_tf_dataset_map()

Tests if the frame_dropout_uniform method of Pose object can be used within a tf.data.Dataset map operation.

test_pose_normalize_can_be_used_in_tf_dataset_map()

Tests if the normalize method of Pose object can be used within a tf.data.Dataset map operation.

test_pose_normalize_distribution_can_be_used_in_tf_dataset_map()

Tests if the normalize_distribution method of Pose object can be used within a tf.data.Dataset map operation.

test_pose_tf_posebody_frame_dropout_normal_eager_mode_num_frames_not_zero()

Tests if frame dropout using normal distribution in Pose object with TensorFlow PoseBody preserves frame count.

test_pose_tf_posebody_frame_dropout_uniform_eager_mode_num_frames_not_zero()

Checks if frame dropout using uniform distribution in Pose object with TensorFlow PoseBody preserves frame count.

test_pose_tf_posebody_normalize_distribution_eager_mode_correct_result()

Tests if the normalization of distribution for Pose object with TensorFlow PoseBody returns expected result.

test_pose_tf_posebody_normalize_eager_mode_preserves_shape()

Tests if the normalization of Pose object with TensorFlow PoseBody in eager mode preserves tensor shape.

test_pose_frame_dropout_normal_can_be_used_in_tf_dataset_map()[source]

Tests if the frame_dropout_normal method of Pose object can be used within a tf.data.Dataset map operation.

test_pose_frame_dropout_uniform_can_be_used_in_tf_dataset_map()[source]

Tests if the frame_dropout_uniform method of Pose object can be used within a tf.data.Dataset map operation.

test_pose_normalize_can_be_used_in_tf_dataset_map()[source]

Tests if the normalize method of Pose object can be used within a tf.data.Dataset map operation.

test_pose_normalize_distribution_can_be_used_in_tf_dataset_map()[source]

Tests if the normalize_distribution method of Pose object can be used within a tf.data.Dataset map operation.

test_pose_tf_posebody_frame_dropout_normal_eager_mode_num_frames_not_zero()[source]

Tests if frame dropout using normal distribution in Pose object with TensorFlow PoseBody preserves frame count.

test_pose_tf_posebody_frame_dropout_uniform_eager_mode_num_frames_not_zero()[source]

Checks if frame dropout using uniform distribution in Pose object with TensorFlow PoseBody preserves frame count.

test_pose_tf_posebody_normalize_distribution_eager_mode_correct_result()[source]

Tests if the normalization of distribution for Pose object with TensorFlow PoseBody returns expected result.

test_pose_tf_posebody_normalize_eager_mode_preserves_shape()[source]

Tests if the normalization of Pose object with TensorFlow PoseBody in eager mode preserves tensor shape.