Closed tms2003 closed 3 months ago
没有尝试过在DeepStream中使用,理论上应该是可以的,欢迎尝试。目前只在PC和Jetson上进行过裸跑测试。 TensorRT 的PTQ int8量化的详细文档后续会给出。以下是简要教程
在 calibration.yaml
中进行配置。
当
dynamic = True
时,需要对shapes
进行配置,且batch_shape == shapes.opt
。calibrator.data
为校准数据文件夹。
执行 python ptq_calibration.py
同上