deeplabcut.pose_estimation_pytorch.config.runner
Runner configuration class for DeepLabCut pose estimation models.
Classes:
| Name | Description |
|---|---|
OptimizerConfig |
Optimizer configuration. |
RunnerConfig |
Training runner configuration. |
SchedulerConfig |
Learning rate scheduler configuration. |
SnapshotCheckpointConfig |
Snapshot configuration for model checkpoints. |
OptimizerConfig
Bases: DLCBaseConfig
Optimizer configuration.
Attributes:
| Name | Type | Description |
|---|---|---|
type |
str
|
Optimizer type (e.g., AdamW, SGD) |
params |
dict[str, Any] | None
|
Optimizer parameters |
Source code in deeplabcut/pose_estimation_pytorch/config/runner.py
RunnerConfig
Bases: DLCBaseConfig
Training runner configuration.
Attributes:
| Name | Type | Description |
|---|---|---|
type |
str
|
Runner type (e.g., PoseTrainingRunner) |
gpus |
Any | None
|
GPU configuration |
key_metric |
str
|
Key metric for evaluation |
key_metric_asc |
bool
|
Whether key metric should be ascending |
eval_interval |
int
|
Evaluation interval in epochs |
optimizer |
OptimizerConfig | None
|
Optimizer configuration |
scheduler |
SchedulerConfig | None
|
Scheduler configuration |
snapshots |
SnapshotCheckpointConfig | None
|
Snapshot configuration |
load_weights_only |
bool | None
|
Value for torch.load() weights_only parameter |
Source code in deeplabcut/pose_estimation_pytorch/config/runner.py
SchedulerConfig
Bases: DLCBaseConfig
Learning rate scheduler configuration.
Attributes:
| Name | Type | Description |
|---|---|---|
type |
str
|
Scheduler type (e.g., LRListScheduler, CosineAnnealingLR, SequentialLR) |
params |
dict[str, Any] | None
|
Scheduler parameters |
Source code in deeplabcut/pose_estimation_pytorch/config/runner.py
SnapshotCheckpointConfig
Bases: DLCBaseConfig
Snapshot configuration for model checkpoints.
Attributes:
| Name | Type | Description |
|---|---|---|
max_snapshots |
int
|
Maximum number of snapshots to keep |
save_epochs |
int
|
Interval for saving snapshots |
save_optimizer_state |
bool
|
Whether to save optimizer state |