• 大小: 1.59MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-10
  • 语言: 其他
  • 标签: 目标检测  NMS  Window  

资源简介

目标检测NMS-GPU和Cython(非极大值抑制)在window下的编译文件,包括soft_NMS实现。小批量情况下Cython速度高于GPU

资源截图

代码片段和文件信息

/* Generated by Cython 0.29 */

/* BEGIN: Cython metadata
{
    “distutils“: {
        “depends“: [
            “C:\\ProgramData\\Anaconda3\\lib\\site-packages\\numpy\\core\\include\\numpy\\arrayobject.h“
            “C:\\ProgramData\\Anaconda3\\lib\\site-packages\\numpy\\core\\include\\numpy\\ufuncobject.h“
        ]
        “include_dirs“: [
            “C:\\ProgramData\\Anaconda3\\lib\\site-packages\\numpy\\core\\include“
        ]
        “language“: “c++“
        “name“: “cpu_nms“
        “sources“: [
            “cpu_nms.pyx“
        ]
    }
    “module_name“: “cpu_nms“
}
END: Cython metadata */

#define PY_SSIZE_T_CLEAN
#include “Python.h“
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
    #error Cython requires Python 2.6+ or Python 3.3+.
#else
#define CYTHON_ABI “0_29“
#define CYTHON_HEX_VERSION 0x001D00F0
#define CYTHON_FUTURE_DIVISION 0
#include 
#ifndef offsetof
  #define offsetof(type member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(WIN32) && !defined(MS_WINDOWS)
  #ifndef __stdcall
    #define __stdcall
  #endif
  #ifndef __cdecl
    #define __cdecl
  #endif
  #ifndef __fastcall
    #define __fastcall
  #endif
#endif
#ifndef DL_IMPORT
  #define DL_IMPORT(t) t
#endif
#ifndef DL_EXPORT
  #define DL_EXPORT(t) t
#endif
#define __PYX_COMMA 
#ifndef HAVE_LONG_LONG
  #if PY_VERSION_HEX >= 0x02070000
    #define HAVE_LONG_LONG
  #endif
#endif
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#ifdef PYPY_VERSION
  #define CYTHON_COMPILING_IN_PYPY 1
  #define CYTHON_COMPILING_IN_PYSTON 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #if PY_VERSION_HEX < 0x03050000
    #undef CYTHON_USE_ASYNC_SLOTS
    #define CYTHON_USE_ASYNC_SLOTS 0
  #elif !defined(CYTHON_USE_ASYNC_SLOTS)
    #define CYTHON_USE_ASYNC_SLOTS 1
  #endif
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_DICT_VERSIONS
  #d

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件           6  2019-02-12 01:42  .gitignore
     文件          70  2019-02-12 01:42  __init__.py
     目录           0  2019-04-19 09:49  build\
     目录           0  2019-04-19 09:49  build\temp.win-amd64-3.6\
     目录           0  2019-04-19 09:49  build\temp.win-amd64-3.6\Release\
     文件         793  2019-04-19 09:46  build\temp.win-amd64-3.6\Release\cpu_nms.cp36-win_amd64.exp
     文件        2000  2019-04-19 09:46  build\temp.win-amd64-3.6\Release\cpu_nms.cp36-win_amd64.lib
     文件     1756561  2019-04-19 09:46  build\temp.win-amd64-3.6\Release\cpu_nms.obj
     文件         818  2019-04-19 09:46  build\temp.win-amd64-3.6\Release\cpu_soft_nms.cp36-win_amd64.exp
     文件        2088  2019-04-19 09:46  build\temp.win-amd64-3.6\Release\cpu_soft_nms.cp36-win_amd64.lib
     文件     1832448  2019-04-19 09:46  build\temp.win-amd64-3.6\Release\cpu_soft_nms.obj
     文件         793  2019-04-19 09:48  build\temp.win-amd64-3.6\Release\gpu_nms.cp36-win_amd64.exp
     文件        2000  2019-04-19 09:48  build\temp.win-amd64-3.6\Release\gpu_nms.cp36-win_amd64.lib
     文件     1766997  2019-04-19 09:47  build\temp.win-amd64-3.6\Release\gpu_nms.obj
     文件       65720  2019-04-19 09:48  build\temp.win-amd64-3.6\Release\nms_kernel.obj
     文件       53760  2019-04-19 09:46  cpu_nms.cp36-win_amd64.pyd
     文件      373315  2019-04-19 09:46  cpu_nms.cpp
     文件        2242  2019-04-19 09:46  cpu_nms.pyx
     文件       67072  2019-04-19 09:46  cpu_soft_nms.cp36-win_amd64.pyd
     文件      420833  2019-04-19 09:46  cpu_soft_nms.cpp
     文件        3942  2019-02-12 01:42  cpu_soft_nms.pyx
     文件       73216  2019-04-19 09:48  gpu_nms.cp36-win_amd64.pyd
     文件      371104  2019-04-19 09:47  gpu_nms.cpp
     文件         180  2019-02-12 01:42  gpu_nms.hpp
     文件        1434  2019-04-19 09:46  gpu_nms.pyx
     文件         124  2019-02-12 01:42  Makefile
     文件        7120  2019-02-12 01:42  nms_kernel.cu
     文件        1915  2019-02-12 01:42  nms_wrapper.py
     文件        2484  2019-04-19 09:40  setup.py
     文件         802  2019-04-19 09:45  setup_cpu.py
     文件        8200  2019-04-19 09:45  setup_gpu.py
............此处省略1个文件信息

评论

共有 条评论