diff --git a/configs/text-detection_ncnn-int8_static.py b/configs/text-detection_ncnn-int8_static.py new file mode 100644 index 000000000..aa4151f13 --- /dev/null +++ b/configs/text-detection_ncnn-int8_static.py @@ -0,0 +1,3 @@ +_base_ = ['./text-detection_static.py', '../../_base_/backends/ncnn-int8.py'] + +onnx_config = dict(input_shape=None) diff --git a/docs/en/03-benchmark/quantization.md b/docs/en/03-benchmark/quantization.md index 8f58f242f..b251da6c9 100644 --- a/docs/en/03-benchmark/quantization.md +++ b/docs/en/03-benchmark/quantization.md @@ -20,9 +20,10 @@ Note: ### OCR detection -| model | dataset | fp32 hmean | int8 hmean | -| :---------------------------------------------------------------------------------------------------------------: | :-------: | :--------: | :------------: | -| [PANet](https://github.com/open-mmlab/mmocr/blob/main/configs/textdet/panet/panet_r18_fpem_ffm_600e_icdar2015.py) | ICDAR2015 | 0.795 | 0.792 @thr=0.9 | +| model | dataset | fp32 hmean | int8 hmean | +| :--------------------------------------------------------------------------------------------------------------------------: | :-------: | :--------: | :------------: | +| [PANet](https://github.com/open-mmlab/mmocr/blob/main/configs/textdet/panet/panet_r18_fpem_ffm_600e_icdar2015.py) | ICDAR2015 | 0.795 | 0.792 @thr=0.9 | +| [TextSnake](https://github.com/open-mmlab/mmocr/blob/main/configs/textdet/textsnake/textsnake_r50_fpn_unet_1200e_ctw1500.py) | CTW1500 | 0.817 | 0.818 | Note: [mmocr](https://github.com/open-mmlab/mmocr) Uses 'shapely' to compute IoU, which results in a slight difference in accuracy diff --git a/docs/zh_cn/03-benchmark/quantization.md b/docs/zh_cn/03-benchmark/quantization.md index db65876e1..8f4bdcf64 100644 --- a/docs/zh_cn/03-benchmark/quantization.md +++ b/docs/zh_cn/03-benchmark/quantization.md @@ -20,9 +20,10 @@ ### OCR 检测任务 -| model | dataset | fp32 hmean | int8 hmean | -| :---------------------------------------------------------------------------------------------------------------: | :-------: | :--------: | :------------: | -| [PANet](https://github.com/open-mmlab/mmocr/blob/main/configs/textdet/panet/panet_r18_fpem_ffm_600e_icdar2015.py) | ICDAR2015 | 0.795 | 0.792 @thr=0.9 | +| model | dataset | fp32 hmean | int8 hmean | +| :--------------------------------------------------------------------------------------------------------------------------: | :-------: | :--------: | :------------: | +| [PANet](https://github.com/open-mmlab/mmocr/blob/main/configs/textdet/panet/panet_r18_fpem_ffm_600e_icdar2015.py) | ICDAR2015 | 0.795 | 0.792 @thr=0.9 | +| [TextSnake](https://github.com/open-mmlab/mmocr/blob/main/configs/textdet/textsnake/textsnake_r50_fpn_unet_1200e_ctw1500.py) | CTW1500 | 0.817 | 0.818 | 备注:[mmocr](https://github.com/open-mmlab/mmocr) 使用 `shapely` 计算 IoU,实现方法会导致轻微的精度差异