setup_windows.py
Go to the documentation of this file.
00001 # --------------------------------------------------------
00002 # Deformable Convolutional Networks
00003 # Copyright (c) 2016 by Contributors
00004 # Copyright (c) 2017 Microsoft
00005 # Licensed under The Apache-2.0 License [see LICENSE for details]
00006 # Modified from py-faster-rcnn (https://github.com/rbgirshick/py-faster-rcnn)
00007 # --------------------------------------------------------
00008 
00009 import numpy as np
00010 import os
00011 from os.path import join as pjoin
00012 #from distutils.core import setup
00013 from setuptools import setup
00014 from distutils.extension import Extension
00015 from Cython.Distutils import build_ext
00016 import subprocess
00017 
00018 #change for windows, by MrX
00019 nvcc_bin = 'nvcc.exe'
00020 lib_dir = 'lib/x64'
00021 
00022 import distutils.msvc9compiler
00023 distutils.msvc9compiler.VERSION = 14.0
00024 
00025 # Obtain the numpy include directory.  This logic works across numpy versions.
00026 try:
00027     numpy_include = np.get_include()
00028 except AttributeError:
00029     numpy_include = np.get_numpy_include()
00030 
00031 ext_modules = [
00032     # unix _compile: obj, src, ext, cc_args, extra_postargs, pp_opts
00033     Extension(
00034         "bbox",
00035         sources=["bbox.pyx"],
00036         extra_compile_args={},
00037         include_dirs = [numpy_include]
00038     ),
00039 ]
00040 
00041 setup(
00042     name='fast_rcnn',
00043     ext_modules=ext_modules,
00044     # inject our custom trigger
00045     cmdclass={'build_ext': build_ext},
00046 )


rail_object_detector
Author(s):
autogenerated on Sat Jun 8 2019 20:26:30