Closed FrancescoSaverioZuppichini closed 3 years ago
hi, had the mmcv-full
been installed? please provide the output of pip list | grep mmcv-full
hi, @FrancescoSaverioZuppichini , in the latest version (v1.3.15), we provide pre-compiled packages for the Python 3.9 environment. You can install the latest mmcv-full with the following command.
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.9.0/index.html
Thank you very much, I'll check this out
hi, is there any progress?
yes so let me share a minimum example container in which the problem arises
FROM nvcr.io/nvidia/cuda:11.2.0-cudnn8-runtime-ubuntu20.04
RUN apt-get -yq update && \
DEBIAN_FRONTEND=noninteractive apt-get install -yqq --no-install-recommends \
git \
ssh \
wget \
python3-dev \
python3-pip \
python3-opencv \
build-essential \
gcc \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN pip install cython
RUN pip install mmcv-full==1.3.16 -f https://download.openmmlab.com/mmcv/dist/cu112/torch1.9.1/index.html
RUN pip install mmdet==2.17.0
env
{'CUDA available': True,
'CUDA_HOME': '/usr/local/cuda',
'GCC': 'gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0',
'GPU 0,1,2': 'GeForce GTX 1080 Ti',
'MMCV': '1.3.16',
'MMCV CUDA Compiler': 'n/a',
'MMCV Compiler': 'n/a',
'NVCC': '',
'OpenCV': '4.5.4-dev',
'PyTorch': '1.9.1+cu102',
'PyTorch compiling details': 'PyTorch built with:\n'
' - GCC 7.3\n'
' - C++ Version: 201402\n'
' - Intel(R) Math Kernel Library Version '
'2020.0.0 Product Build 20191122 for Intel(R) 64 '
'architecture applications\n'
' - Intel(R) MKL-DNN v2.1.2 (Git Hash '
'98be7e8afa711dc9b66c8ff3504129cb82013cdb)\n'
' - OpenMP 201511 (a.k.a. OpenMP 4.5)\n'
' - NNPACK is enabled\n'
' - CPU capability usage: AVX2\n'
' - CUDA Runtime 10.2\n'
' - 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_70,code=sm_70\n'
' - CuDNN 7.6.5\n'
' - Magma 2.5.2\n'
' - Build settings: BLAS_INFO=mkl, '
'BUILD_TYPE=Release, CUDA_VERSION=10.2, '
'CUDNN_VERSION=7.6.5, '
'CXX_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/c++, '
'CXX_FLAGS= -Wno-deprecated '
'-fvisibility-inlines-hidden -DUSE_PTHREADPOOL '
'-fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM '
'-DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK '
'-DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE '
'-O2 -fPIC -Wno-narrowing -Wall -Wextra '
'-Werror=return-type '
'-Wno-missing-field-initializers '
'-Wno-type-limits -Wno-array-bounds '
'-Wno-unknown-pragmas -Wno-sign-compare '
'-Wno-unused-parameter -Wno-unused-variable '
'-Wno-unused-function -Wno-unused-result '
'-Wno-unused-local-typedefs -Wno-strict-overflow '
'-Wno-strict-aliasing '
'-Wno-error=deprecated-declarations '
'-Wno-stringop-overflow -Wno-psabi '
'-Wno-error=pedantic -Wno-error=redundant-decls '
'-Wno-error=old-style-cast '
'-fdiagnostics-color=always -faligned-new '
'-Wno-unused-but-set-variable '
'-Wno-maybe-uninitialized -fno-math-errno '
'-fno-trapping-math -Werror=format '
'-Wno-stringop-overflow, LAPACK_INFO=mkl, '
'PERF_WITH_AVX=1, PERF_WITH_AVX2=1, '
'PERF_WITH_AVX512=1, TORCH_VERSION=1.9.1, '
'USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, '
'USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, '
'USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, '
'USE_NNPACK=ON, USE_OPENMP=ON, \n',
'Python': '3.8.10 (default, Sep 28 2021, 16:10:42) [GCC 9.3.0]',
'TorchVision': '0.10.1+cu102',
'sys.platform': 'linux'}
| pip install mmcv-full==1.3.16 -f https://download.openmmlab.com/mmcv/dist/cu112/torch1.9.1/index.html
Hi, we do not provide pre-compiled packages for cu112 and torch1.9.1, but we do provide cu111 and torch1.9.0.
You can use the follow command to install it.
pip install mmcv-full==1.3.16 -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.9.0/index.html
Hello I am getting the same error. I used pip install mmcv-full==1.3.16 -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.9.0/index.html
, but it has not changed anything. The full error is
/opt/conda/lib/python3.7/site-packages/mmdet/models/utils/transformer.py:27: UserWarning: MultiScaleDeformableAttention
in MMCV has been moved to mmcv.ops.multi_scale_deform_attn
, please update your MMCV
'MultiScaleDeformableAttention
in MMCV has been moved to 'ImportError Traceback (most recent call last)
/opt/conda/lib/python3.7/site-packages/mmdet/models/utils/transformer.py in
/opt/conda/lib/python3.7/site-packages/mmcv/ops/init.py in
/opt/conda/lib/python3.7/site-packages/mmcv/ops/assign_score_withk.py in
/opt/conda/lib/python3.7/site-packages/mmcv/utils/ext_loader.py in load_ext(name, funcs) 12 def load_ext(name, funcs): ---> 13 ext = importlib.import_module('mmcv.' + name) 14 for fun in funcs:
/opt/conda/lib/python3.7/importlib/init.py in import_module(name, package) 126 level += 1 --> 127 return _bootstrap._gcd_import(name[level:], package, level) 128
ImportError: libtorch_cpu.so: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)
Same issue. Looking forward to a solution!
Me too!
Same thing here!
Hi, what is your mmcv version?
@zhouzaida it is 1.5 the same as mmcv-full
I checked if the paths and files are put in the right places, and everything is put without any problem!
And when I tried to do the import without the try statement, I got this:
ImportError: DLL load failed: The specified module could not be found.
The problem is that ImportError
in this line in is silently catching another exception rather than the "install mmcv-full" one.
if you try the line that is raising the Error:
from mmcv.ops.multi_scale_deform_attn import MultiScaleDeformableAttention
>>> ImportError: .../lib/python3.9/site-packages/mmcv/_ext.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZNK2at6Tensor4add_ERKS0_RKN3c106ScalarE
For me was install mmcv CPU version:
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cpu/torch1.11.0/index.html
Hi, what is your mmcv version?
Same question.
I test the mmcv==1.6.0, cu113, pytorch=1.9.0, and the same question when using the CPU version.
same question when I create a docker container with the below commands RUN pip install mmcv-full==1.3.7 -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.8.0/index.html -U RUN pip install mmdet==2.13.0 -U RUN pip install mmsegmentation==0.17.0 -U
same question, why always the same question?
terminal:
python3 -m pip list | grep mmcv-full mmcv-full 1.7.0
error:
"/home/data/programs/miniconda3/envs/openmmlab/lib/python3.8/site-packages/mmcv/c
nn/bricks/transformer.py:33: UserWarning: Fail to import MultiScaleDeformableA ttention
from mmcv.ops.multi_scale_deform_attn
, You should install mmcv- full
if you need this module."
I am running pytorch 1.8 and cuda 11.1 in a docker container.
I had the issue when running (this installed mmcv-full 1.7.0):
RUN pip install openmim
RUN mim install mmcv-full
However this version of mmcv-full fixed the issue without needing to change to a CPU version:
RUN pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.8.0/mmcv_full-1.7.1-cp39-cp39-manylinux1_x86_64.whl
I also had the issue when running my code.
environments:
torch:1.9.0
torchvision:0.10.0
mmcv-full==1.4.7
mmdet==2.20.0
GPU 0,1: NVIDIA GeForce RTX 4090,
CUDA Version: 12.1
The way I installed mmcv-full on the anaconda virtual environment on the far server is:
pip install mmcv_full-1.4.7-cp37-cp37m-manylinux1_x86_64.whl
Me too, does anyone solve this problem?
Thanks for reporting the unexpected results and we appreciate it a lot.
Checklist
Describe the Issue
Reproduction
Install mmcv-full using
mim
orthen try to use
vfnet
Environment
python -c "from mmcv.utils import collect_env; print(collect_env())"
to collect necessary environment information \ It results in an error