Shortcuts

mmagic.apis.inferencers.video_interpolation_inferencer

Module Contents

Classes

VideoInterpolationInferencer

inferencer that predicts with video interpolation models.

class mmagic.apis.inferencers.video_interpolation_inferencer.VideoInterpolationInferencer(config: Union[mmagic.utils.ConfigType, str], ckpt: Optional[str], device: Optional[str] = None, extra_parameters: Optional[Dict] = None, seed: int = 2022, **kwargs)[source]

Bases: mmagic.apis.inferencers.base_mmagic_inferencer.BaseMMagicInferencer

inferencer that predicts with video interpolation models.

func_kwargs[source]
extra_parameters[source]
preprocess(video: mmagic.apis.inferencers.base_mmagic_inferencer.InputsType) Dict[source]

Process the inputs into a model-feedable format.

Parameters

video (InputsType) – Video to be interpolated by models.

Returns

Video to be interpolated by models.

Return type

video(InputsType)

forward(inputs: mmagic.apis.inferencers.base_mmagic_inferencer.InputsType, result_out_dir: mmagic.apis.inferencers.base_mmagic_inferencer.InputsType = '') mmagic.apis.inferencers.base_mmagic_inferencer.PredType[source]

Forward the inputs to the model.

Parameters
  • inputs (InputsType) – Input video directory.

  • result_out_dir (str) – Output directory of video. Defaults to ‘’.

Returns

Result of forwarding

Return type

PredType

visualize(preds: mmagic.apis.inferencers.base_mmagic_inferencer.PredType, result_out_dir: str = '') List[numpy.ndarray][source]

Visualize is not needed in this inferencer.

postprocess(preds: mmagic.apis.inferencers.base_mmagic_inferencer.PredType, imgs: Optional[List[numpy.ndarray]] = None) Union[mmagic.apis.inferencers.base_mmagic_inferencer.ResType, Tuple[mmagic.apis.inferencers.base_mmagic_inferencer.ResType, numpy.ndarray]][source]

Postprocess is not needed in this inferencer.

Read the Docs v: latest
Versions
latest
stable
0.x
Downloads
pdf
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.