format_multiview_data_for_pca

lightning_pose.utils.pca.format_multiview_data_for_pca(data_arr: Tensor[Tensor], mirrored_column_matches: ListConfig | list) Tensor[Tensor][source]

Reformat multiview data so each observation is a single body part across views.

Parameters:
  • data_arr – keypoints from training data

  • mirrored_column_matches – one element for each camera view; each element is itself a list that contains indices into the overall ordering of the keypoints

Returns:

formatted data to run pca