deeplabcut.pose_estimation_pytorch.config.data
Data configuration classes for DeepLabCut pose estimation models.
Classes:
| Name | Description |
|---|---|
COCOLoaderConfig |
Configuration for COCO Loader. |
DLCLoaderConfig |
Configuration for DeepLabCut Loader. |
DataConfig |
Complete data configuration. |
DataTransformationConfig |
Data transformation configuration. |
DetectorDataConfig |
Data configuration for object-detector training (no pose-only fields). |
GenSamplingConfig |
Configuration for CTD models. |
COCOLoaderConfig
Bases: DLCBaseConfig
Configuration for COCO Loader.
Attributes:
| Name | Type | Description |
|---|---|---|
type |
Literal[COCOLoader]
|
Loader type identifier |
Source code in deeplabcut/pose_estimation_pytorch/config/data.py
DLCLoaderConfig
Bases: DLCBaseConfig
Configuration for DeepLabCut Loader.
Attributes:
| Name | Type | Description |
|---|---|---|
type |
Literal[DLCLoader]
|
Loader type identifier |
config |
str | dict
|
Path to the DeepLabCut project config, or the project config itself |
trainset_index |
NonNegativeInt
|
Index of the TrainingsetFraction for which to load data |
shuffle |
NonNegativeInt
|
Index of the shuffle for which to load data |
modelprefix |
str
|
The modelprefix for the shuffle |
Source code in deeplabcut/pose_estimation_pytorch/config/data.py
DataConfig
Bases: DLCBaseConfig
Complete data configuration.
Attributes:
| Name | Type | Description |
|---|---|---|
bbox_margin |
NonNegativeInt
|
Bounding box margin for top-down models |
colormode |
Literal['RGB']
|
Color mode for images (e.g., 'RGB', 'BGR') |
gen_sampling |
GenSamplingConfig | None
|
Generation sampling configuration |
inference |
DataTransformationConfig | None
|
Inference data configuration |
train |
DataTransformationConfig | None
|
Training data configuration |
loader |
DLCLoaderConfig | COCOLoaderConfig | None
|
Data loader configuration |
Source code in deeplabcut/pose_estimation_pytorch/config/data.py
DataTransformationConfig
Bases: DLCBaseConfig
Data transformation configuration.
Attributes:
| Name | Type | Description |
|---|---|---|
resize |
dict | None
|
Resize transformation configuration |
longest_max_size |
int | dict | None
|
Maximum size for longest edge |
hflip |
bool | float | dict | None
|
Horizontal flip configuration |
affine |
dict | None
|
Affine transformation configuration |
random_bbox_transform |
dict | None
|
Random bbox transformation configuration |
crop_sampling |
dict | None
|
Crop sampling configuration |
hist_eq |
bool | dict | None
|
Whether to apply histogram equalization |
motion_blur |
bool | dict | None
|
Whether to apply motion blur |
covering |
bool | dict | None
|
Covering/CoarseDropout transformation configuration |
elastic_transform |
bool | dict | None
|
Elastic transformation configuration |
grayscale |
bool | dict | None
|
Grayscale transformation configuration |
gaussian_noise |
bool | float | int | dict | None
|
Gaussian noise standard deviation |
auto_padding |
dict | None
|
Auto padding configuration |
normalize_images |
bool | dict | None
|
Whether to normalize images |
scale_to_unit_range |
bool | dict | None
|
Whether to scale images to [0, 1] range |
top_down_crop |
dict | None
|
Top-down crop configuration |
collate |
dict | None
|
Collate function configuration |
Source code in deeplabcut/pose_estimation_pytorch/config/data.py
DetectorDataConfig
Bases: DLCBaseConfig
Data configuration for object-detector training (no pose-only fields).
Source code in deeplabcut/pose_estimation_pytorch/config/data.py
GenSamplingConfig
Bases: DLCBaseConfig
Configuration for CTD models.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
The sigma for each keypoint. |
required | |
|
Indices of symmetric keypoints (e.g. left/right eye) |
required | |
|
The probability of applying jitter. Jitter error is defined as a small displacement from the GT keypoint. |
required | |
|
The probability of applying a swap error. Swap error represents a confusion between the same or similar parts which belong to different persons. |
required | |
|
The probability of applying an inversion error. Inversion error occurs when a pose estimation model is confused between semantically similar parts that belong to the same instance. |
required | |
|
The probability of applying a miss error. Miss error represents a large displacement from the GT keypoint position. |
required |