Comments (3)
改一行代码即可解决问题。
修改detectron/utils/env.py的第63行
prefixes = [_CMAKE_INSTALL_PREFIX, sys.prefix, sys.exec_prefix] + sys.path + ["/home/.conda/envs/detectron/lib/python2.7/site-packages/torch/"]
把后面的这个路径改成你自己的就OK了。
from cbnet_caffe.
在编译Detectron官方代码完后运行
python2 detectron/tests/test_spatial_narrow_as_op.py
测试时 正常通过,但编译完您的代码后,运行测试代码就会报错Traceback (most recent call last): File "detectron/tests/test_spatial_narrow_as_op.py", line 88, in <module> c2_utils.import_detectron_ops() File "/home/wrc/CBNet/detectron/utils/c2.py", line 43, in import_detectron_ops detectron_ops_lib = envu.get_detectron_ops_lib() File "/home/wrc/CBNet/detectron/utils/env.py", line 71, in get_detectron_ops_lib ('Detectron ops lib not found; make sure that your Caffe2 ' AssertionError: Detectron ops lib not found; make sure that your Caffe2 version includes Detectron module请问下是不是这个代码只能使用源码编译的方法安装的caffe2
我是源码编译安装的,conda没有试过
from cbnet_caffe.
@cosimo17 感谢大佬 !
from cbnet_caffe.
Related Issues (20)
- 方便分享Dual + Triple的配置 与 模型吗?谢谢~ HOT 1
- INFO net.py: 89: old_res5_2_branch2c_bn_b not found
- HTTP Error 301: Moved Permanently
- RuntimeError: [enforce fail at pybind_state.h:425] . Exception encountered running PythonOp function: ValueError: min() arg is an empty sequence HOT 2
- Excuse me, do we need to train the Assistant Backbones in advance? HOT 1
- Any tips for finetuning on private datasets? HOT 2
- License issues/conflicts!
- Can not find the codes for composite structure HOT 1
- About Composite connection HOT 1
- Where is the BN layer before upsampling? HOT 1
- COCO上训练号的模型 HOT 2
- Sharing weights for CBNet HOT 1
- RuntimeError: [enforce fail at operator.cc:75] blob != nullptr. op Conv: Encountered a non-existing input blob: gpu_0/old_res3_7_sum HOT 9
- how to use the CBNet HOT 1
- gpu out of memory issue HOT 2
- Could you please release the trained model weights file? HOT 3
- aws client error (PermanentRedirect) HOT 1
- any plans for using the CBNet in Detectron2?
- 请问是否计划在mmdetection工具箱上实现CBNet? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cbnet_caffe.