mmocr
mmocr copied to clipboard
[Bug] ImportError: DLL load failed while importing _ext: 找不到指定的模块。
Prerequisite
- [X] I have searched Issues and Discussions but cannot get the expected help.
- [X] The bug has not been fixed in the latest version (0.x) or latest version (1.x).
Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
main branch https://github.com/open-mmlab/mmocr
Environment
sys.platform: win32 Python: 3.8.15 (default, Nov 11 2022, 08:16:59) [MSC v.1916 64 bit (AMD64)] CUDA available: True numpy_random_seed: 2147483648 GPU 0: NVIDIA GeForce RTX 3060 CUDA_HOME: None MSVC: 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.35.32215 版 GCC: n/a PyTorch: 1.10.2 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.2.3 (Git Hash 7336ca9f055cf1bfa13efb658fe15dc9b41f0740)
- OpenMP 2019
- LAPACK is enabled (usually provided by MKL)
- CPU capability usage: AVX2
- CUDA Runtime 11.3
- NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,cod e=sm_86;-gencode;arch=compute_37,code=compute_37
- CuDNN 8.2
- Magma 2.5.4
- Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=11.3, CUDNN_VERSION=8.2.0, 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.10.2, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, US E_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=OFF, USE_NNPACK=OFF, USE_OPENMP=ON,
TorchVision: 0.11.3 OpenCV: 4.7.0 MMEngine: 0.7.2 MMOCR: 1.0.0+d7c59f3
Reproduces the problem - code sample
when you debug the script tools\infer.py in pycharm, the error happens, but it's fine to run the script in command line. the virtual python environments is the same.
Reproduces the problem - command or script
(open-mmlab) F:\ProgramData\webstormspace\mmocr>python tools\infer.py czb\010.jpg --det DBNet --rec SAR --show
Reproduces the problem - error message
D:\ProgramFiles\Anaconda3\envs\open-mmlab\python.exe F:/ProgramData/webstormspace/mmocr/czb/infer.py
Loads checkpoint by http backend from path: https://download.openmmlab.com/mmocr/textdet/dbnet/dbnet_resnet50-oclip_1200e_icdar2015/dbnet_resnet50-oclip_1200e_icdar2015_20221102_115917-bde8c87a.pth
Traceback (most recent call last):
File "F:/ProgramData/webstormspace/mmocr/czb/infer.py", line 2, in
Process finished with exit code 1
Additional information
No response
We recommend using English or English & Chinese for issues so that we could have broader discussion.
Seems mmcv
has not been installed correctly, you may try reinstalling it and run your command again:
pip uninstall mmcv
pip uninstall mmcv-full
pip install openmim
mim install mmcv
Seems
mmcv
has not been installed correctly, you may try reinstalling it and run your command again:pip uninstall mmcv pip uninstall mmcv-full pip install openmim mim install mmcv
I try it,but still show ModuleNotFoundError: No module named 'mmcv'
I also have this problem,I don't know how to handle it,do you handle it?