R2CNN_Faster-RCNN_Tensorflow在windows上编译

代码

R2CNN_Faster-RCNN_Tensorflow

编译

过程按readme.md所述,将setup文件修改为windows版本
(1)

cd $PATH_ROOT/libs/box_utils/
python setup.py build_ext --inplace

windows版本的setup.py作者以提供:setup.txt
同时按要求修改:Introduction of related changes.txt
(2)

cd $PATH_ROOT/libs/box_utils/cython_utils
python setup.py build_ext --inplace

这里的setup.py文件未找到,不过内容与上类似,其他内容可直接复制,修改ext_modules为:

ext_modules = [
    Extension(
        "cython_bbox",
        ["bbox.pyx"],
        extra_compile_args={'gcc': ["-Wno-cpp", "-Wno-unused-function"]},
        include_dirs = [numpy_include]
    ),
    Extension(
        "cython_nms",
        ["nms.pyx"],
        extra_compile_args={'gcc': ["-Wno-cpp", "-Wno-unused-function"]},
        include_dirs = [numpy_include]
    )
]

修改nms.pyx文件第25行为:

cdef np.ndarray[np.intp_t, ndim=1] order = scores.argsort()[::-1]
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值