config ¶
Training run config (_target_ based YAML).
Classes¶
fastvideo.train.utils.config.RunConfig dataclass ¶
RunConfig(models: dict[str, dict[str, Any]], method: dict[str, Any], training: TrainingConfig, callbacks: dict[str, dict[str, Any]], raw: dict[str, Any])
Parsed run config loaded from YAML.
Methods:¶
fastvideo.train.utils.config.RunConfig.resolved_config ¶
Return a fully-resolved config dict with defaults.
Suitable for logging to W&B so that every parameter (including defaults) is visible.
Source code in fastvideo/train/utils/config.py
Functions:¶
fastvideo.train.utils.config.load_run_config ¶
Load a run config from YAML.
Expected top-level keys: models, method, training (nested), and optionally callbacks and pipeline.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path | str | Path to the YAML config file. | required |
overrides | list[str] | None | Optional list of CLI override tokens, e.g. | None |
Source code in fastvideo/train/utils/config.py
fastvideo.train.utils.config.require_bool ¶
require_bool(mapping: dict[str, Any], key: str, *, default: bool | None = None, where: str | None = None) -> bool
Read a bool value.
Source code in fastvideo/train/utils/config.py
fastvideo.train.utils.config.require_choice ¶
require_choice(mapping: dict[str, Any], key: str, choices: set[str] | frozenset[str], *, default: str | None = None, where: str | None = None) -> str
Read a string that must be one of choices.
Source code in fastvideo/train/utils/config.py
fastvideo.train.utils.config.require_non_negative_float ¶
require_non_negative_float(mapping: dict[str, Any], key: str, *, default: float | None = None, where: str | None = None) -> float
Read a float that must be >= 0.
Source code in fastvideo/train/utils/config.py
fastvideo.train.utils.config.require_non_negative_int ¶
require_non_negative_int(mapping: dict[str, Any], key: str, *, default: int | None = None, where: str | None = None) -> int
Read an int that must be >= 0.
Source code in fastvideo/train/utils/config.py
fastvideo.train.utils.config.require_positive_int ¶
require_positive_int(mapping: dict[str, Any], key: str, *, default: int | None = None, where: str | None = None) -> int
Read an int that must be > 0.