Error during test_spatial_narrow_as_op.py while installing
See original GitHub issueSystem information
- Operating system: Ubuntu 16.04.3 LTS
- Compiler version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5)
- CUDA version: CUDA 8.0
- cuDNN version: cuDNN 6.0
- NVIDIA driver version: nvidia-387
- GPU models (for all devices if they are not all the same): Titan X
PYTHONPATH
environment variable: /usr/local/lib/python2.7python --version
output: Python 2.7.12
Hi,
I’ve been trying to install detectron in my machine. After following all steps required in install.md I check te installation by running python2 $DETECTRON/tests/test_spatial_narrow_as_op.py. And I get the following error:
ERROR: test_large_forward (main.SpatialNarrowAsOpTest)
Traceback (most recent call last): File “test_spatial_narrow_as_op.py”, line 68, in test_large_forward self._run_test(A, B) File “test_spatial_narrow_as_op.py”, line 37, in _run_test workspace.FeedBlob(‘A’, A) File “/usr/local/caffe2/python/workspace.py”, line 322, in FeedBlob return C.feed_blob(name, arr, StringifyProto(device_option)) RuntimeError: [enforce fail at common_cudnn.h:118] version_match. cuDNN compiled (7005) and runtime (7003) versions mismatch
Could anyone help me to figure out what is wrong with the installation?
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (1 by maintainers)
Top GitHub Comments
Hi, I install Caffe2 from Anaconda Pre-build Binaries with CUDA 8.0 and cuDNN 7.1.2 and got this error:
RuntimeError: [enforce fail at common_cudnn.h:118] version_match. cuDNN compiled (7101) and runtime (7102) versions mismatch
How can I “uninstall” or use the same version? I tried
sudo dpkg -i libcudnn7_7.1.1.5-1+cuda8.0_amd64.deb sudo dpkg -i libcudnn7-dev_7.1.1.5-1+cuda8.0_amd64.deb
and also,
But doesn’t work
Hi guys,
As @ambigus9 said I solved the problem using Docker. I tried everything and I didn’t find out any other solution with the mismatch of versions.
I explain the steps that I followed if someone is not familiar with docker
1. Install docker. (https://docs.docker.com/install/) 2. Install nvidia-docker (https://github.com/NVIDIA/nvidia-docker) 3. Follow the steps of (https://github.com/facebookresearch/Detectron/blob/master/INSTALL.md) 3.1 Clone repo 3.2 Install docker image & run the test image 4. After that, start the container associated with the image: sudo nvidia-docker container run --rm -it detectron:c2-cuda9-cudnn7 bash 5. Now, inside the container you can run the demo: python2 tools/infer_simple.py
–cfg configs/12_2017_baselines/e2e_mask_rcnn_R-101-FPN_2x.yaml
–output-dir /tmp/detectron-visualizations
–image-ext jpg
–wts https://s3-us-west-2.amazonaws.com/detectron/35861858/12_2017_baselines/e2e_mask_rcnn_R-101-FPN_2x.yaml.02_32_51.SgT4y1cO/output/train/coco_2014_train:coco_2014_valminusminival/generalized_rcnn/model_final.pkl
demo
I hope you find it helpful