Shortcuts

mmcv.video.dequantize_flow

mmcv.video.dequantize_flow(dx: numpy.ndarray, dy: numpy.ndarray, max_val: float = 0.02, denorm: bool = True)numpy.ndarray[源代码]

Recover from quantized flow.

参数
  • dx (ndarray) – Quantized dx.

  • dy (ndarray) – Quantized dy.

  • max_val (float) – Maximum value used when quantizing.

  • denorm (bool) – Whether to multiply flow values with width/height.

返回

Dequantized flow.

返回类型

ndarray