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

ModuleNotFoundError: No module named 'FaceBoxes.utils.nms.cpu_nms' #25

Closed
rakacendekia opened this issue Oct 14, 2020 · 9 comments
Closed

Comments

@rakacendekia
Copy link

When I run command python3 demo_webcam_smooth.py --onnx, can anyone solve this problem ?

@cleardusk
Copy link
Owner

Try sh ./build.sh first.

@rakacendekia
Copy link
Author

./build_cpu_nms.sh: line 2: python3: command not found
./build_sim3dr.sh: line 1: python3: command not found

@cleardusk
Copy link
Owner

I think you should first configure your python3 environment, using the official package or Anaconda.

@rakacendekia
Copy link
Author

Solved, i just build it manually

@joeapiwit
Copy link

@rakacendekia Hi,

Could you please share how to "build it manually" as you mentioned?
Thank you!

@SetupMdSystem
Copy link

Solved, i just build it manually

Hi,
How did you manage to build it manually?
Thanks

@catsled
Copy link

catsled commented Oct 9, 2023

Solved, i just build it manually

Hi, How did you manage to build it manually? Thanks

Just cd xxx & bash xxx.sh

@d1c2s3
Copy link

d1c2s3 commented May 28, 2024

ModuleNotFoundError: No module named 'FaceBoxes.utils.nms.cpu_nms'
Can you help me figure it out, thanks

@NinjaTech
Copy link

ModuleNotFoundError: No module named 'FaceBoxes.utils.nms.cpu_nms' Can you help me figure it out, thanks

First you want to do this: #12 (comment)

Then:

Create the setup.py file:
In the FaceBoxes/utils/nms directory, create a new file called setup.py with the following content:

from setuptools import setup, Extension
from Cython.Build import cythonize
import numpy as np

extensions = [
    Extension(
        "cpu_nms",
        sources=["cpu_nms.pyx", "cpu_nms.c"],  # Cython and C files
        include_dirs=[np.get_include()],       # Include NumPy headers
    )
]

setup(
    name="cpu_nms",
    ext_modules=cythonize(extensions)
)

Then run it
python setup.py build_ext --inplace

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

7 participants