fastvideo.configs.configs#

Module Contents#

Classes#

PreprocessConfig

Configuration for preprocessing operations.

API#

class fastvideo.configs.configs.PreprocessConfig[source]#

Configuration for preprocessing operations.

static add_cli_args(parser: fastvideo.utils.FlexibleArgumentParser, prefix: str = 'preprocess') fastvideo.utils.FlexibleArgumentParser[source]#

Add preprocessing configuration arguments to the parser.

check_preprocess_config() None[source]#
dataloader_num_workers: int[source]#

1

dataset_output_dir: str[source]#

‘./output’

dataset_path: str = <Multiline-String>[source]#
do_temporal_sample: bool[source]#

False

drop_short_ratio: float[source]#

1.0

flush_frequency: int[source]#

256

classmethod from_kwargs(kwargs: dict[str, Any]) Optional[fastvideo.configs.configs.PreprocessConfig][source]#

Create PreprocessConfig from keyword arguments.

max_height: int[source]#

480

max_width: int[source]#

848

model_path: str = <Multiline-String>[source]#
num_frames: int[source]#

163

preprocess_video_batch_size: int[source]#

2

samples_per_file: int[source]#

64

speed_factor: float[source]#

1.0

train_fps: int[source]#

30

training_cfg_rate: float[source]#

0.0

video_length_tolerance_range: float[source]#

2.0