Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

直接使用python setyup.py build_ext --inplace生成.so文件却import不了bbox_overlaps #16

Open
huashunfu opened this issue Mar 2, 2022 · 2 comments

Comments

@huashunfu
Copy link

No description provided.

@josh-gleason
Copy link

I had to apply the following patch to resolve a similar issue.

diff --git i/evaluation.py w/evaluation.py
index 545e9ed..ef100fc 100644
--- i/evaluation.py
+++ w/evaluation.py
@@ -11,7 +11,7 @@ import pickle
 import argparse
 import numpy as np
 from scipy.io import loadmat
-from bbox import bbox_overlaps
+from box_overlaps import bbox_overlaps
 from IPython import embed
 
 
diff --git i/setup.py w/setup.py
index 74dba05..f6aac80 100644
--- i/setup.py
+++ w/setup.py
@@ -9,5 +9,5 @@ from distutils.core import setup, Extension
 from Cython.Build import cythonize
 import numpy
 
-package = Extension('bbox', ['box_overlaps.pyx'], include_dirs=[numpy.get_include()])
+package = Extension('box_overlaps', ['box_overlaps.pyx'], include_dirs=[numpy.get_include()])
 setup(ext_modules=cythonize([package]))

@rithwikjayanth233
Copy link

Hi @josh-gleason ,
I implemented the changes you mentioned. I have an issue "error: Unable to find vcvarsall.bat". I was wondering if you came across this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants