deeplabcut.pose_estimation_tensorflow.datasets.augmentation
Classes:
| Name | Description |
|---|---|
KeypointAwareCropToFixedSize |
|
KeypointAwareCropToFixedSize
Bases: CropToFixedSize
Methods:
| Name | Description |
|---|---|
__init__ |
Crop images to fixed size with keypoint-aware center sampling. |
Source code in deeplabcut/pose_estimation_tensorflow/datasets/augmentation.py
__init__
Crop images to fixed size with keypoint-aware center sampling.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
int
|
Crop images down to this maximum width. |
required |
|
int
|
Crop images down to this maximum height. |
required |
|
float
|
Maximum allowed shift of the cropping center position as a fraction of the crop size. Defaults to 0.4. |
0.4
|
|
str
|
Crop centers sampling method. Must be either: "uniform" (randomly over the image), "keypoints" (randomly over the annotated keypoints), "density" (weighing preferentially dense regions of keypoints), or "hybrid" (alternating randomly between "uniform" and "density"). Defaults to "hybrid". |
'hybrid'
|