Build Cython for fast YOLOv2
I tried to clone the latest code with cython update and try build cd ./cython_utils python3 setup.py build_ext --inplace
I get the following error, any help?

i'm having same error!
Hmm , I don't have a windows system to test this on. Can you replace the code in setup.py with
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
import numpy
ext_modules=[
Extension("cy_yolo2_findboxes",
sources=["cy_yolo2_findboxes.pyx"],
#libraries=["m"], # Unix-like specific
include_dirs=[numpy.get_include()]
)
]
setup(
name= 'cy_yolo2_findboxes',
ext_modules = cythonize(ext_modules),
)
and report back, with the time the box_constructor function takes to execute ?
Great! that works I can compile now. @Dhruv-Mohan
@ramarajan09 can you also tell me the time box_constructor takes to execute? look in net->yolov2->test.py for the function
how would I run that function alone?
I'll add the changes for windows specific building, as soon as i've debugged the cythonised yolov1 models
I have the same problem on OS X. Theoretically the includes should be resolved, but they aren't.
This solves it (on OS X), as I apparently header locations of numpy don't get passed through. No expert with a real solution though...
python3 setup.py build_ext --inplace --include-dirs=/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/core/include
Original Issue is resolved.