open-mmlab / mmdeploy

OpenMMLab Model Deployment Framework
https://mmdeploy.readthedocs.io/en/latest/
Apache License 2.0
2.76k stars 634 forks source link

[Bug] [mmdeploy] [error] [common.h:50] Could not found entry 'AttentionPostprocessor' in mmocr. Available components: [("CTCConvertor", 0), ("DBHead", 0), ("PANHead", 0), ("PSEHead", 0)] [2023-01-28 10:49:54.165] [mmdeploy] [error] [task.cpp:99] error parsing config: { "component": "AttentionPostprocessor", "context": { "device": "<any>", "model": "<any>", "stream": "<any>" }, "input": [ "prep_output", "infer_output" ], "module": "mmocr", "name": "postprocess", "output": [ "post_output" ], "params": { "dict_file": "dict_file.txt", "with_padding": true }, "type": "Task" } #1676

Open zj363330176 opened 1 year ago

zj363330176 commented 1 year ago

Checklist

Describe the bug

python mmdeploy\demo\python\ocr.py 再运行这个语句的时候报错mmdeploy中OCR的SDK不能使用啊

Reproduction

python mmdeploy\demo\python\ocr.py

Environment

01/28 11:02:55 - mmengine - INFO - sys.platform: win32
01/28 11:02:55 - mmengine - INFO - Python: 3.8.5 | packaged by conda-forge | (default, Sep 24 2020, 16:20:24) [MSC v.1916 64 bit (AMD64)]
01/28 11:02:55 - mmengine - INFO - CUDA available: False
01/28 11:02:55 - mmengine - INFO - numpy_random_seed: 2147483648
01/28 11:02:55 - mmengine - INFO - MSVC: 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.34.31937 版
01/28 11:02:55 - mmengine - INFO - GCC: n/a
01/28 11:02:55 - mmengine - INFO - PyTorch: 1.13.1
01/28 11:02:55 - mmengine - INFO - PyTorch compiling details: PyTorch built with:
  - C++ Version: 199711
  - MSVC 192829337
  - Intel(R) Math Kernel Library Version 2020.0.2 Product Build 20200624 for Intel(R) 64 architecture applications
  - Intel(R) MKL-DNN v2.6.0 (Git Hash 52b5f107dd9cf10910aaa19cb47f3abf9b349815)
  - OpenMP 2019
  - LAPACK is enabled (usually provided by MKL)
  - CPU capability usage: AVX2
  - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CXX_COMPILER=C:/cb/pytorch_1000000000000/work/tmp_bin/sccache-cl.exe, CXX_FLAGS=/DWIN32 /D_WINDOWS /GR /EHsc /w /bigobj -DUSE_PTHREADPOOL -openmp:experimental -IC:/cb/pytorch_1000000000000/work/mkl/include -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOCUPTI -DUSE_FBGEMM -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -DEDGE_PROFILER_USE_KINETO, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=1.13.1, USE_CUDA=0, USE_CUDNN=OFF, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=OFF, USE_NNPACK=OFF, USE_OPENMP=ON, USE_ROCM=OFF,

01/28 11:02:55 - mmengine - INFO - TorchVision: 0.14.1
01/28 11:02:55 - mmengine - INFO - OpenCV: 4.7.0
01/28 11:02:55 - mmengine - INFO - MMEngine: 0.4.0
01/28 11:02:55 - mmengine - INFO - MMCV: 2.0.0rc3
01/28 11:02:55 - mmengine - INFO - MMCV Compiler: MSVC 192829924
01/28 11:02:55 - mmengine - INFO - MMCV CUDA Compiler: not available
01/28 11:02:55 - mmengine - INFO - MMDeploy: 1.0.0rc1+09f1952
01/28 11:02:55 - mmengine - INFO -

01/28 11:02:55 - mmengine - INFO - **********Backend information**********
01/28 11:02:55 - mmengine - INFO - tensorrt:    None
01/28 11:02:56 - mmengine - INFO - ONNXRuntime: 1.13.1
01/28 11:02:56 - mmengine - INFO - ONNXRuntime-gpu:     None
01/28 11:02:56 - mmengine - INFO - ONNXRuntime custom ops:      Available
01/28 11:02:56 - mmengine - INFO - pplnn:       None
01/28 11:02:56 - mmengine - INFO - ncnn:        None
01/28 11:02:56 - mmengine - INFO - snpe:        None
01/28 11:02:56 - mmengine - INFO - openvino:    None
01/28 11:02:56 - mmengine - INFO - torchscript: 1.13.1
01/28 11:02:56 - mmengine - INFO - torchscript custom ops:      NotAvailable
01/28 11:02:56 - mmengine - INFO - rknn-toolkit:        None
01/28 11:02:56 - mmengine - INFO - rknn2-toolkit:       None
01/28 11:02:56 - mmengine - INFO - ascend:      None
01/28 11:02:56 - mmengine - INFO - coreml:      None
01/28 11:02:56 - mmengine - INFO - tvm: None
01/28 11:02:56 - mmengine - INFO -

01/28 11:02:56 - mmengine - INFO - **********Codebase information**********
01/28 11:02:56 - mmengine - INFO - mmdet:       3.0.0rc5
01/28 11:02:56 - mmengine - INFO - mmseg:       None
01/28 11:02:56 - mmengine - INFO - mmcls:       None
01/28 11:02:56 - mmengine - INFO - mmocr:       1.0.0rc5
01/28 11:02:56 - mmengine - INFO - mmedit:      None
01/28 11:02:56 - mmengine - INFO - mmdet3d:     None
01/28 11:02:56 - mmengine - INFO - mmpose:      None
01/28 11:02:56 - mmengine - INFO - mmrotate:    None
01/28 11:02:56 - mmengine - INFO - mmaction:    None

Error traceback

No response

AllentDan commented 1 year ago

For text recognition models, the SDK only supports CRNN up to now.