Shortcuts

mmcv.arraymisc

quantize

Quantize an array of (-inf, inf) to [0, levels-1].

dequantize

Dequantize an array.