Environment configuration: torch 1.11.0 + CUDA 11.3 (latest)
Use mmdetection to infer:
from mmdet.apis import init_detector, inference_detector
Errors are reported as follows:
ImportError: /home/user/repos/mmdetection/mmdet/ops/dcn/deform_conv_cuda.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe26detail37_typeMetaDataInstance_preallocated_32E
The problem has been solved. The reason for the error is that the pytorch version is too new. Although openmmlab supports the latest version, it will still cause the error.
Solution:
Degrade the pytorch version to torch 1.6.0 + cu102, query the official GitHub of openmmlab, uninstall and reinstall mmcv 1.3.9, and re run the mmdetection code to solve the error.
Read More:
- [Solved] mmdetection benchmark.py Error: RuntimeError: Distributed package doesn‘t have NCCL built in
- onnx error: ImportError: /home/dy/anaconda3/envs/torch/lib/python3.6/site-packages/onnx…
- Pytorch CUDA Error: UserWarning: CUDA initialization: CUDA unknown error…
- [Solved] RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at
- [Solved] Pycharm paddle Error: Error: (External) CUDA error(35), CUDA driver version is insufficient for CUDA
- [Solved] RuntimeError: CUDA error: device-side assert triggered CUDA kernel errors
- [Solved] D2lzh_Pytorch Import error: importerror: DLL load failed while importing
- [Solved] mmdet install error: ERROR: Could not build wheels for pycocotools
- [Solved] ValueError: Error when checking input: expected conv2d_input to have 4 dimensions
- RuntimeError: CUDA error: an illegal memory access was encountered
- RTX 3090 Run pytorch Error: CUDA error: no kernel image is available for execution on the device
- How to Solve Error “ImportError: cannot import name imsave“
- How to Solve Error: RuntimeError CUDA out of memory
- [Solved] CUDA unknown error – this may be due to an incorrectly set up environment
- pytorch: RuntimeError CUDA error device-side assert triggered
- [Solved] RuntimeError: cuda runtime error (801) : operation not supported at
- [Solved] error: ROIAlign_cuda.cu(275): error: no instance of function template “THCCeilDiv“ matches
- [Solved] with ERRTYPE = cudaError CUDA failure 999 unknown error
- [Solved] RuntimeError: CUDA error: CUBLAS_STATUS_EXECUTION_FAILED when calling `cublasSgemm
- [Solved] RuntimeError: CUDA error: CUBLAS_STATUS_EXECUTION_FAILED when calling `cubla…