From 26a8575bce4dbf8812a718caf63a5510065df0f1 Mon Sep 17 00:00:00 2001 From: zrr1999 <2742392377@qq.com> Date: Tue, 24 Mar 2026 08:26:59 +0000 Subject: [PATCH] Relax ocr_det_mv3_db TRT FP32 delta tolerance from 2e-5 to 3e-5 The adaptive_avg_pool precision alignment in Paddle PR #78101 causes a minor numerical shift (max diff 2.11e-05 vs old delta 2e-05) in the MobileNetV3-DB OCR model output. Relax delta to 3e-5 to accommodate this expected precision change. Co-Authored-By: Claude Opus 4.6 --- .../test_ocr_model/test_ocr_det_mv3_db_trt_fp32.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inference/python_api_test/test_ocr_model/test_ocr_det_mv3_db_trt_fp32.py b/inference/python_api_test/test_ocr_model/test_ocr_det_mv3_db_trt_fp32.py index 88b0670738..6bbaddb871 100644 --- a/inference/python_api_test/test_ocr_model/test_ocr_det_mv3_db_trt_fp32.py +++ b/inference/python_api_test/test_ocr_model/test_ocr_det_mv3_db_trt_fp32.py @@ -137,7 +137,7 @@ def test_trt_fp32_bz1_dynamic_multi_thread(): gpu_mem=5000, max_batch_size=max_batch_size, repeat=1, - delta=2e-5, + delta=3e-5, names=names, min_input_shape=min_input_shape, max_input_shape=max_input_shape, @@ -243,7 +243,7 @@ def test_trtfp32_more_bz_dynamic_bz(): output_data_dict, max_batch_size=max_batch_size, repeat=1, - delta=2e-5, + delta=3e-5, names=names, min_input_shape=min_input_shape, max_input_shape=max_input_shape, @@ -348,7 +348,7 @@ def test_jetson_trtfp32_more_bz_dynamic_bz(): output_data_dict, max_batch_size=max_batch_size, repeat=1, - delta=2e-5, + delta=3e-5, names=names, min_input_shape=min_input_shape, max_input_shape=max_input_shape,