fastvideo.configs.utils#

Module Contents#

Functions#

clean_cli_args

Clean the arguments by removing the ones that not explicitly provided by the user.

update_config_from_args

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.