deeplabcut.pose_estimation_pytorch.models.criterions.dekr
Loss criterions for DEKR models.
Classes:
| Name | Description |
|---|---|
DEKRHeatmapLoss |
DEKR Heatmap loss. |
DEKROffsetLoss |
DEKR Offset loss. |
DEKRHeatmapLoss
Bases: BaseCriterion
DEKR Heatmap loss.
Methods:
| Name | Description |
|---|---|
forward |
Args: |
Source code in deeplabcut/pose_estimation_pytorch/models/criterions/dekr.py
forward
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
Tensor
|
the output from which to compute the loss |
required |
|
Tensor
|
the target for the loss |
required |
|
Tensor | float
|
the weights for the loss |
1.0
|
Returns:
| Type | Description |
|---|---|
Tensor
|
the DEKR offset loss |
Source code in deeplabcut/pose_estimation_pytorch/models/criterions/dekr.py
DEKROffsetLoss
Bases: BaseCriterion
DEKR Offset loss.
Methods:
| Name | Description |
|---|---|
forward |
Args: |
Source code in deeplabcut/pose_estimation_pytorch/models/criterions/dekr.py
forward
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
Tensor
|
the output from which to compute the loss |
required |
|
Tensor
|
the target for the loss |
required |
|
Tensor | float
|
the weights for the loss |
1.0
|
Returns:
| Type | Description |
|---|---|
Tensor
|
the DEKR offset loss |