deeplabcut.pose_estimation_pytorch.models.criterions.kl_discrete
SimCC Discrete KL Divergence loss with Gaussian Label Smoothing.
Can be used for SimCC-type heads. Modified from the mmpose implementation. For more
details, see https://github.com/open-mmlab/mmpose.
Classes:
| Name | Description |
|---|---|
KLDiscreteLoss |
KLDiscrete loss. |
KLDiscreteLoss
Bases: BaseCriterion
KLDiscrete loss.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
float
|
Temperature for the softmax. |
1.0
|
|
bool
|
Use softmax on the labels. |
False
|
|
float
|
Temperature for the softmax on the labels. |
10.0
|
|
bool
|
Allows the use a weighted loss for different joints. |
True
|
|
list[int] | None
|
Indices of masked keypoints. |
None
|
|
float
|
Weight for masked keypoints. |
1.0
|