Why can importing MMDetection work while importing mmcv.ops fails?
Computer VisionLevel: IntermediateCompiled vision operation dependencies
Why can importing MMDetection work while importing mmcv.ops fails?
Hints
- A Python import and a compiled extension have different dependencies.
- Does the installed package actually include the required operations?
Answer
Python package availability does not guarantee that compiled C++/CUDA extensions are present and compatible. A lightweight MMCV package may omit those operations, or the installed binary may target a different PyTorch/CUDA combination. Inspect the environment and the required operator, then install or build a supported package set. Do not stack conflicting MMCV variants in one environment.
Source and licence: OpenMMLab — MMDetection FAQ · Apache-2.0 · answer: Quantoros editorial