lightning_pose.data
lightning_pose.data.augmentations Module
Functions to build augmentation pipeline.
Functions
|
Create simple data transform pipeline that augments images. |
lightning_pose.data.dali Module
Data pipelines based on efficient video reading by nvidia dali package.
Functions
|
Generic video reader pipeline that loads videos, resizes, augments, and normalizes. |
Classes
|
wrapper around a DALI pipeline to get batches for ptl. |
|
All the DALI stuff in one place. |
lightning_pose.data.datamodules Module
Data modules split a dataset into train, val, and test modules.
Classes
|
Splits a labeled dataset into train, val, and test data loaders. |
|
Data module that contains labeled and unlabled data loaders. |
lightning_pose.data.datasets Module
Dataset objects store images, labels, and functions for manipulation.
Classes
|
Base dataset that contains images and keypoints as (x, y) pairs. |
|
Heatmap dataset that contains the images and keypoints in 2D arrays. |
|
Heatmap dataset that contains the images and keypoints in 2D arrays from all the cameras. |
lightning_pose.data.utils Module
Dataset/data module utilities.
Functions
|
Returns the number of examples for train, val and test given split probs. |
|
Remove samples from a data array that contain nans. |
|
Simple function to count the number of frames in a video or a list of videos. |
|
Quickly compute number of training frames for a given dataset. |
|
Generate 2D Gaussian heatmaps from mean and sigma. |
|
Evaluate 4D heatmaps using a 3D location tensor (last dim is x, y coords). |
|
Undo an affine transform given a tensor of keypoints and the tranform matrix. |
|
Potentially undo an affine transform given a tensor of keypoints and the tranform matrix. |
Classes
|
Return type when calling __getitem__() on BaseTrackingDataset. |
|
Return type when calling __getitem__() on HeatmapTrackingDataset. |
|
Return type when calling __getitem__() on MultiviewDataset. |
|
Return type when calling __getitem__() on MultiviewHeatmapDataset. |
|
Batch type for base labeled data. |
|
Batch type for heatmap labeled data. |
|
Batch type for multiview labeled data. |
|
Batch type for multiview heatmap labeled data. |
|
Batch type for unlabeled data. |
|
Batch type for multiview unlabeled data. |
|
Batch type for base labeled+unlabeled data. |
|
Batch type for heatmap labeled+unlabeled data. |
|
Return type when calling train/val/test_dataloader() on semi-supervised models. |
|
Helper class to extract all data from a data module. |