Detectron ops lib not found
See original GitHub issueAfter installing caffe2 from source on Ubuntu 16.04, and trying to test with: python2 detectron/tests/test_spatial_narrow_as_op.py
I get the following:
No handlers could be found for logger "caffe2.python.net_drawer"
net_drawer will not run correctly. Please install the correct dependencies.
E0207 16:36:41.320443 4125 init_intrinsics_check.cc:59] CPU feature avx is present on your machine, but the Caffe2 binary is not compiled with it. It means you may not get the full speed of your CPU.
Traceback (most recent call last):
File "detectron/tests/test_spatial_narrow_as_op.py", line 88, in <module>
utils.c2.import_detectron_ops()
File "/home/gene/detectron/lib/utils/c2.py", line 41, in import_detectron_ops
detectron_ops_lib = envu.get_detectron_ops_lib()
File "/home/gene/detectron/lib/utils/env.py", line 73, in get_detectron_ops_lib
'version includes Detectron module').format(detectron_ops_lib)
AssertionError: Detectron ops lib not found at '/usr/local/lib/python2.7/dist-packages/lib/libcaffe2_detectron_ops_gpu.so'; make sure that your Caffe2 version includes Detectron module
But the detectron module is present in the modules
folder. Do I need to modify CMakeLists somehow before installing caffe2 to make sure it gets included correctly?
System information
- Operating system: Ubuntu 16.04
- Compiler version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5)
- CUDA version: 8.0
- cuDNN version: 6.0.21
- NVIDIA driver version:
- GPU models (for all devices if they are not all the same): 4x Tesla k80
PYTHONPATH
environment variable: /usr/local:/home/ubuntu/caffe2/buildpython --version
output: 2.7.12
Issue Analytics
- State:
- Created 6 years ago
- Comments:27
Top Results From Across the Web
Error in training opennmt - caffe2_detectron_ops.dll not found
This answer worked for me. Just deleting "caffe2_detectron_ops.dll" from the path ("C:\Users\Girish\AppData\Local\Programs\Python\Python38\lib ...
Read more >Python get detectron ops lib - ProgramCreek.com
This page shows Python code examples for get detectron ops lib.
Read more >Error loading 'caffe2_detectron_ops.dll' in windows
Hi, I'm new to PyTorch. I have installed using the command 'conda install pytorch torchvision torchaudio cudatoolkit=11.0 -c pytorch' from ...
Read more >How and where to add a missing library for Caffe2
AssertionError : Detectron ops lib not found; make sure that your Caffe2 version includes Detectron module. How do I update the stack's ...
Read more >安装densepose (make、make ops问题解决)_# 西洲#的博客
No handlers could be found for logger "caffe2.python.net_drawer" ... sure that your Caffe2 ' AssertionError: Detectron ops lib not found; ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I wrote all commands during my installation down so I thought this might help with you’re bug research. I’ve seen that you solved it. But maybe this can help others as a guideline. Good luck to everyone!
System information
Installation
I used the Caffe2 documentation and the Detectron documentation as a guideline
Update NVIDIA driver
Download driver
Installing Dependencies
Install CUDA
Link: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/ Search for the newest version. Use if possible cuda 8. I used: cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
Install cuDNN
Search for the newest version: https://developer.nvidia.com/cudnn
Install Caffe2
Because of the rapid development of Caffe2, you might need to reset the repository to the last build passing version. You can check this on the Caffe2 GitHub repository. Click on the build passing/failing icon in the top of the README.md. On left you can check the last build and select the last passing build. Click on the build and copy the commit number.
Set environment variables
add these lines to .bashrc:
Test Caffe2 & GPU
Test your Caffe2 installation:
Test the GPU Installation. The return value needs to be bigger than 0:
Install Detectron dependencies
add line to .bashrc:
Don’t forget to download the data from the coco website in this directory. Structure as described in the data README.md
Install Detectron
check Installation
Hope I could help some people 😃
I solved the problem. There was no issue, I simply and stupidly had a typo in my PYTHONPATH. I fixed that and it now works properly. Thanks for this great resource!