Skip to content

Commit 873d1b7

Browse files
committed
Add cython util
1 parent 019d145 commit 873d1b7

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

cython_util/setup.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,18 @@ def build_extensions(self):
103103
build_ext.build_extensions(self)
104104

105105
ext_modules = [
106+
Extension(
107+
"nms",
108+
["nms.pyx"],
109+
extra_compile_args={'gcc': ["-Wno-cpp", "-Wno-unused-function"]},
110+
include_dirs = [numpy_include]
111+
),
112+
Extension(
113+
"proposal_for_train",
114+
["proposal_for_train.pyx"],
115+
extra_compile_args={'gcc': ["-Wno-cpp", "-Wno-unused-function"]},
116+
include_dirs = [numpy_include]
117+
),
106118
Extension(
107119
"bbox_overlap",
108120
["bbox_overlap.pyx"],
@@ -121,18 +133,6 @@ def build_extensions(self):
121133
extra_compile_args={'gcc': ["-Wno-cpp", "-Wno-unused-function"]},
122134
include_dirs = [numpy_include]
123135
),
124-
# Extension(
125-
# "utils.cython_nms",
126-
# ["utils/nms.pyx"],
127-
# extra_compile_args={'gcc': ["-Wno-cpp", "-Wno-unused-function"]},
128-
# include_dirs = [numpy_include]
129-
# ),
130-
# Extension(
131-
# "nms.cpu_nms",
132-
# ["nms/cpu_nms.pyx"],
133-
# extra_compile_args={'gcc': ["-Wno-cpp", "-Wno-unused-function"]},
134-
# include_dirs = [numpy_include]
135-
# )
136136
]
137137

138138
# if CUDA:

0 commit comments

Comments
 (0)