Anaconda下部署Facebook的Detectron

Installation in Anaconda3.5

1. $conda create -n py2.7-caffe2 python=2.7
2. $conda install pytorch-nightly -c pytorch
3. $cd $DETECTRON_PATH/ && pip install -r requirements.txt
4. $conda install pydot
5. $cd $COCOAPI_PATH/PythonAPI/ && make install
6. $cd $DETECTRON_PATH/ && make
7. Installation done and check\
a) To check if Caffe2 build was successful
  $python -c 'from caffe2.python import core' 2>/dev/null && echo "Success" || echo "Failure"
  Output: Success
b) To check if Caffe2 GPU build was successful
   This must print a number > 0 in order to use Detectron
  $python -c 'from caffe2.python import workspace; print(workspace.NumCudaDevices())'
  Output: 1 (to your own configs)
c) Check that Detectron tests pass:
  $python $DETECTRON_PATH/detectron/tests/test_spatial_narrow_as_op.py
  output as below:
[E init_intrinsics_check.cc:43] 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.
[E init_intrinsics_check.cc:43] CPU feature avx2 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.
[E init_intrinsics_check.cc:43] CPU feature fma 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.
Found Detectron ops lib: /home/baofeng/anaconda3/envs/py2.7-caffe2/lib/python2.7/site-packages/torch/lib/libcaffe2_detectron_ops_gpu.so
...
----------------------------------------------------------------------
Ran 3 tests in 2.770s

OK

Issue list in deployment

  1. net_drawer will not run correctly. Please install the correct dependencies.
    $conda install pydot
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值