Windows 编译cython nms
https://github.com/pjl1995/CTracker/blob/master/model.py
调用:
from lib.cython_nms.cpu_nms import soft_nms as cython_soft_nms_wrapper
demo:
import numpy as npimport cpu_nms
# from lib.cython_nms import cpu_nms import cython_soft_nms_wrapper
x = np.ones([11,10], dtype =np.float32)aa= cpu_nms.soft_nms(x,0.7)print(aa)
python setup_cpu.py build_ext --inplace
from setuptools import setup, Extensionimport numpy as np
from Cython.Build import cythonize
from Cython.Distutils import build_ext# Obtain the numpy include directory. This logic works across numpy versions.
try:numpy_include = np.get_include()
except AttributeError:numpy_include = np.get_numpy_include()# extensions
ext_args = dict(include_dirs=[numpy_include],language='c++',
)
ext_modules = [Extension("bbox",["bbox.pyx"],**ext_args),Extension("cpu_nms",["cpu_nms.pyx"],**ext_args),]setup(name='frcnn_cython',ext_modules=cythonize(ext_modules),# inject our custom triggercmdclass={'build_ext': build_ext},
)
Windows 编译cython nms相关推荐
- OGRE 2.1 Windows 编译
版权所有,转载请注明链接 OGRE 2.1 Windows 编译 环境: Windows 7 64Bit Visual Studio 2012 OGRE 2.1 CMake 2.8.12.1 OGRE ...
- DCNv2 windows编译2021
2019年曾经写过一篇DCNv2 windows编译的博客 https://blog.csdn.net/jacke121/article/details/91355170 当时vs2015是编译成功的 ...
- Cef mysql.exe_CEF3.2623使用记录:windows编译
CEF3.2623使用记录:windows编译 1:cef3.2623下载地址 2623是cef3最后一个支持xp系统的版本,且可以支持html的audio标签,可以用作对html音频的处理下载地址为 ...
- LibreCAD for windows 编译
LibreCAD for windows 编译 项目中要用到平面CAD功能,找到libreCAD,发现不很适合需求,需要重新改造一下:)要改造就要编译: 1.下载源码解压到H盘 2.用notepad+ ...
- FreeRDP 2.0 for Windows 编译
简介 Freerdp 一个开源的RDP跨平台客户端: https://github.com/FreeRDP/FreeRDP 版本 2020-04-09 Github上其发布了2.0版本: 只下载其re ...
- Windows编译FreeRDP
Windows编译FreeRDP 需要准备的工具 1.安装CMake (cmake-gui) 2.安装`Visual Studio Community 2017` 3.下载`FreeRDP`源码 4. ...
- windows编译g20问题解决记录
windows编译g20问题解决记录 error C3861: 'vasprintf': identifier not found 参考链接 here
- Windows编译安装AzerothCore魔兽世界开源服务端Lua脚本引擎Eluna和防作弊anticheat模块教程
Windows编译安装AzerothCore魔兽世界开源服务端Lua脚本引擎Eluna和防作弊anticheat模块教程 大家好,我是艾西今天和大家聊聊魔兽世界游戏内的脚步以及防作弊模块 Eluna是 ...
- windows编译libzip vs2017
windows编译libzip vs2017 1 下载 2 打开工具 3 编译zlib 4 编译libzip 链接 参考: 原创文章禁止转载 同步发布http://www.alom.com.cn/ 1 ...
最新文章
- 大道至简:软件工程实践者的思想——第七、八章感想
- 关于改进插入图片功能的想法
- python3 导入上级目录中的模块
- 《高效程序员的修炼》 读书笔记
- exit()、_Exit() 和 _exit() 函数的区别和联系
- java多线程写在哪一层_面试知识点三:Java多线程
- 着迷英语900句小结
- vue a-sub-menu 添加点击事件报错_Vue+TS 使用的问题(持续更)
- 【POJ - 3321】 Apple Tree(dfs序 + 线段树维护 或 dfs序 + 树状数组维护)
- 启动盘Linux windows,Linux 中创建 USB 启动盘来拯救 Windows 用户
- byte数组之间的赋值,byte和TCHAR数组的赋值
- 【转载】deque双向队列
- mysql删除注册表mysqld要删除吗_原神官方删除魈的观测枢数据,又要拆分机制吗?策划应该不傻吧?...
- 【Python-2.7】if-elif-else
- C语言简明教程--指针5
- officescan 不输入密码卸载
- Ubuntu 解析迅雷链接
- 联想小新air pro 13的 win10和ubuntu17.10双系统安装,彻底解决找不到磁盘问题。
- 跟任何人都聊得来---最受世界500强企业欢迎的沟通课(一)
- 现代数据库及大数据管理—常见问题与技术归纳
热门文章
- SQL like 模糊查询
- Java--Dom解析XML文件
- java设计模式---访问者模式
- 深入理解Linux修改hostname
- mysql 5.5 5.6差异,MySQL5.5和MySQL5.6授权区别
- 自由移动的气泡_STARCCM+标准算例展示之——曳力作用下的气泡上升速度
- NeHe教程Qt实现——lesson01
- matlab 多维数组储存,多维数组 - MATLAB 系统中文帮助手册
- matlab函数输入顺序,求助:在MATLAB里如何输入时间序列中的时间
- java第一份工作_Java 学到什么程度可以找到第一份工作 ?