cli
¶
Modules¶
fastvideo.entrypoints.cli.cli_types
¶
Classes¶
fastvideo.entrypoints.cli.cli_types.CLISubcommand
¶
Base class for CLI subcommands
Functions¶
fastvideo.entrypoints.cli.cli_types.CLISubcommand.subparser_init
¶subparser_init(subparsers: _SubParsersAction) -> FlexibleArgumentParser
fastvideo.entrypoints.cli.generate
¶
Classes¶
fastvideo.entrypoints.cli.generate.GenerateSubcommand
¶
Bases: CLISubcommand
The generate subcommand for the FastVideo CLI
Source code in fastvideo/entrypoints/cli/generate.py
Functions¶
fastvideo.entrypoints.cli.generate.GenerateSubcommand.validate
¶validate(args: Namespace) -> None
Validate the arguments for this command
Source code in fastvideo/entrypoints/cli/generate.py
Functions¶
fastvideo.entrypoints.cli.main
¶
fastvideo.entrypoints.cli.utils
¶
Functions¶
fastvideo.entrypoints.cli.utils.launch_distributed
¶
Launch a distributed job with the given arguments
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num_gpus
|
int
|
Number of GPUs to use |
required |
args
|
list[str]
|
Arguments to pass to v1_fastvideo_inference.py (defaults to sys.argv[1:]) |
required |
master_port
|
int | None
|
Port for the master process (default: random) |
None
|