utils ¶
Functions:¶
fastvideo.configs.utils.clean_cli_args ¶
Clean the arguments by removing the ones that not explicitly provided by the user.
Source code in fastvideo/configs/utils.py
fastvideo.configs.utils.update_config_from_args ¶
update_config_from_args(config: Any, args_dict: dict[str, Any], prefix: str = '', pop_args: bool = False) -> bool
Update configuration object from arguments dictionary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config | Any | The configuration object to update | required |
args_dict | dict[str, Any] | Dictionary containing arguments | required |
prefix | str | Prefix for the configuration parameters in the args_dict. If None, assumes direct attribute mapping without prefix. | '' |