fastvideo.v1.models.loader.utils
#
Utilities for selecting and loading models.
Module Contents#
Functions#
Creates a mapping function that transforms parameter names using regex patterns. |
|
Sets the default torch dtype to the given dtype. |
Data#
API#
- fastvideo.v1.models.loader.utils.get_param_names_mapping(mapping_dict: Dict[str, str]) Callable[[str], tuple[str, Any, Any]] [source]#
Creates a mapping function that transforms parameter names using regex patterns.
- fastvideo.v1.models.loader.utils.set_default_torch_dtype(dtype: torch.dtype)[source]#
Sets the default torch dtype to the given dtype.