fastvideo.configs.utils
#
Module Contents#
Functions#
Clean the arguments by removing the ones that not explicitly provided by the user. |
|
Update configuration object from arguments dictionary. |
API#
- fastvideo.configs.utils.clean_cli_args(args: argparse.Namespace) dict[str, Any] [source]#
Clean the arguments by removing the ones that not explicitly provided by the user.
- fastvideo.configs.utils.update_config_from_args(config: Any, args_dict: dict[str, Any], prefix: str = '', pop_args: bool = False) bool [source]#
Update configuration object from arguments dictionary.
- Parameters:
config – The configuration object to update
args_dict – Dictionary containing arguments
prefix – Prefix for the configuration parameters in the args_dict. If None, assumes direct attribute mapping without prefix.