fastvideo.v1.fastvideo_args
#
The arguments of FastVideo Inference.
Module Contents#
Classes#
Training arguments. Inherits from FastVideoArgs and adds training-specific arguments. If there are any conflicts, the training arguments will take precedence. |
Functions#
Clean the arguments by removing the ones that not explicitly provided by the user. |
|
Prepare the inference arguments from the command line arguments. |
|
Temporarily set the current fastvideo config. Used during model initialization. We save the current fastvideo config in a global variable, so that all modules can access it, e.g. custom ops can access the fastvideo config to determine how to dispatch. |
Data#
API#
- class fastvideo.v1.fastvideo_args.FastVideoArgs[source]#
- STA_mode: fastvideo.v1.configs.pipelines.base.STA_Mode[source]#
None
- static add_cli_args(parser: fastvideo.v1.utils.FlexibleArgumentParser) fastvideo.v1.utils.FlexibleArgumentParser [source]#
- classmethod from_cli_args(args: argparse.Namespace) fastvideo.v1.fastvideo_args.FastVideoArgs [source]#
- pipeline_config: fastvideo.v1.configs.pipelines.base.PipelineConfig[source]#
βfield(β¦)β
- class fastvideo.v1.fastvideo_args.TrainingArgs[source]#
Bases:
fastvideo.v1.fastvideo_args.FastVideoArgs
Training arguments. Inherits from FastVideoArgs and adds training-specific arguments. If there are any conflicts, the training arguments will take precedence.
- static add_cli_args(parser: fastvideo.v1.utils.FlexibleArgumentParser) fastvideo.v1.utils.FlexibleArgumentParser [source]#
- classmethod from_cli_args(args: argparse.Namespace) fastvideo.v1.fastvideo_args.TrainingArgs [source]#
- fastvideo.v1.fastvideo_args.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.v1.fastvideo_args.get_current_fastvideo_args() fastvideo.v1.fastvideo_args.FastVideoArgs [source]#
- fastvideo.v1.fastvideo_args.prepare_fastvideo_args(argv: list[str]) fastvideo.v1.fastvideo_args.FastVideoArgs [source]#
Prepare the inference arguments from the command line arguments.
- Parameters:
argv β The command line arguments. Typically, it should be
sys.argv[1:]
to ensure compatibility withparse_args
when no arguments are passed.- Returns:
The inference arguments.
- fastvideo.v1.fastvideo_args.set_current_fastvideo_args(fastvideo_args: fastvideo.v1.fastvideo_args.FastVideoArgs)[source]#
Temporarily set the current fastvideo config. Used during model initialization. We save the current fastvideo config in a global variable, so that all modules can access it, e.g. custom ops can access the fastvideo config to determine how to dispatch.