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

ImportError: No module named 'nms' #7

Open
rahard opened this issue Dec 10, 2017 · 13 comments
Open

ImportError: No module named 'nms' #7

rahard opened this issue Dec 10, 2017 · 13 comments

Comments

@rahard
Copy link

rahard commented Dec 10, 2017

running
flow --h
produces:
ImportError: No module named 'nms'

@marlon-rodrigues
Copy link

marlon-rodrigues commented Dec 11, 2017

@rahard This solved for me: https://keponk.wordpress.com/2017/12/07/siraj-darkflow/

@BillCai06
Copy link

The same problem here, after following the post, it is running in the miniconda with py3.6.3 and cython. I tried many times with a fresh clone, still got No module named 'nms' even after running it with weights and cfg

@rahard
Copy link
Author

rahard commented Dec 21, 2017

marlon, I will check the link ... thanks
(meanwhile - on a different thread - I got darknet running using the code from darknet's site. at least I can reproduce YOLO.)

@BillCai06
Copy link

Thank you rahard, The code from https://github.com/thtrieu/darkflow has no such error. It run with out any problems

@glaizaavila
Copy link

Hi! I am also having this problem. How about if my tensorflow is not in GPU version, just CPU, what should be done to solve the problem?

@skylinetech-team
Copy link

hi, I am running on mac air with tensor flow activated
./flow --h
got the following errors, any advises ? thanks much !

(tensorflow) Marks-MacBook-Air:YOLO_Object_Detection markhu$ ./flow --h
/Users/markhu/anaconda3/lib/python3.6/site-packages/h5py/init.py:34: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
Traceback (most recent call last):
File "./flow", line 4, in
from darkflow.cli import cliHandler
File "/Users/markhu/Projects/object_detection_frameworks/YOLO_Object_Detection/darkflow/cli.py", line 3, in
from .net.build import TFNet
File "/Users/markhu/Projects/object_detection_frameworks/YOLO_Object_Detection/darkflow/net/build.py", line 7, in
from .framework import create_framework
File "/Users/markhu/Projects/object_detection_frameworks/YOLO_Object_Detection/darkflow/net/framework.py", line 1, in
from . import yolo
File "/Users/markhu/Projects/object_detection_frameworks/YOLO_Object_Detection/darkflow/net/yolo/init.py", line 2, in
from . import predict
File "/Users/markhu/Projects/object_detection_frameworks/YOLO_Object_Detection/darkflow/net/yolo/predict.py", line 7, in
from ...cython_utils.cy_yolo_findboxes import yolo_box_constructor
File "darkflow/cython_utils/cy_yolo_findboxes.pyx", line 1, in init cy_yolo_findboxes
import numpy as np
ModuleNotFoundError: No module named 'nms'

@skylinetech-team
Copy link

also tried https://github.com/thtrieu/darkflow, got same error

@carlchandev
Copy link

I am a mac user and using python 3.6 on anaconda and i got the same problem as well. I have tried googled it with no luck. Did anyone found a solution?

@KingfaLuis
Copy link

Traceback (most recent call last):
File "G:/workspace/PycharmProjects/py_hog_svm/py_03_hog_feature.py", line 10, in
from get_data import get_pos_samples, get_neg_samples, read_pos_samples, read_neg_samples
ModuleNotFoundError: No module named 'get_data'

@Mohammed-Shoaib
Copy link

Same issue. No module named 'nms'.

Traceback (most recent call last):
File "flow", line 4, in
from darkflow.cli import cliHandler
File "C:\Users\Shoaib\Desktop\YOLO_Object_Detection\darkflow\cli.py", line 3,
in
from .net.build import TFNet
File "C:\Users\Shoaib\Desktop\YOLO_Object_Detection\darkflow\net\build.py", li
ne 7, in
from .framework import create_framework
File "C:\Users\Shoaib\Desktop\YOLO_Object_Detection\darkflow\net\framework.py"
, line 1, in
from . import yolo
File "C:\Users\Shoaib\Desktop\YOLO_Object_Detection\darkflow\net\yolo_init_
.py", line 2, in
from . import predict
File "C:\Users\Shoaib\Desktop\YOLO_Object_Detection\darkflow\net\yolo\predict.
py", line 7, in
from ...cython_utils.cy_yolo_findboxes import yolo_box_constructor
File "darkflow\cython_utils\cy_yolo_findboxes.pyx", line 1, in init darkflow.c
ython_utils.cy_yolo_findboxes
import numpy as np
ModuleNotFoundError: No module named 'nms'

python flow --h
Traceback (most recent call last):
File "flow", line 4, in
from darkflow.cli import cliHandler
File "C:\Users\Shoaib\Desktop\YOLO_Object_Detection\darkflow\cli.py", line 3,
in
from .net.build import TFNet
File "C:\Users\Shoaib\Desktop\YOLO_Object_Detection\darkflow\net\build.py", li
ne 7, in
from .framework import create_framework
File "C:\Users\Shoaib\Desktop\YOLO_Object_Detection\darkflow\net\framework.py"
, line 1, in
from . import yolo
File "C:\Users\Shoaib\Desktop\YOLO_Object_Detection\darkflow\net\yolo_init_
.py", line 2, in
from . import predict
File "C:\Users\Shoaib\Desktop\YOLO_Object_Detection\darkflow\net\yolo\predict.
py", line 7, in
from ...cython_utils.cy_yolo_findboxes import yolo_box_constructor
File "darkflow\cython_utils\cy_yolo_findboxes.pyx", line 1, in init darkflow.c
ython_utils.cy_yolo_findboxes
import numpy as np
ModuleNotFoundError: No module named 'nms'

Please can someone help resolve this issue?

@Casp3rBB
Copy link

Same issue. No module named 'nms'.

Traceback (most recent call last):
File "flow", line 4, in
from darkflow.cli import cliHandler
File "C:\Users\Shoaib\Desktop\YOLO_Object_Detection\darkflow\cli.py", line 3,
in
from .net.build import TFNet
File "C:\Users\Shoaib\Desktop\YOLO_Object_Detection\darkflow\net\build.py", li
ne 7, in
from .framework import create_framework
File "C:\Users\Shoaib\Desktop\YOLO_Object_Detection\darkflow\net\framework.py"
, line 1, in
from . import yolo
File "C:\Users\Shoaib\Desktop\YOLO_Object_Detection\darkflow\net\yolo__init__
.py", line 2, in
from . import predict
File "C:\Users\Shoaib\Desktop\YOLO_Object_Detection\darkflow\net\yolo\predict.
py", line 7, in
from ...cython_utils.cy_yolo_findboxes import yolo_box_constructor
File "darkflow\cython_utils\cy_yolo_findboxes.pyx", line 1, in init darkflow.c
ython_utils.cy_yolo_findboxes
import numpy as np
ModuleNotFoundError: No module named 'nms'

python flow --h
Traceback (most recent call last):
File "flow", line 4, in
from darkflow.cli import cliHandler
File "C:\Users\Shoaib\Desktop\YOLO_Object_Detection\darkflow\cli.py", line 3,
in
from .net.build import TFNet
File "C:\Users\Shoaib\Desktop\YOLO_Object_Detection\darkflow\net\build.py", li
ne 7, in
from .framework import create_framework
File "C:\Users\Shoaib\Desktop\YOLO_Object_Detection\darkflow\net\framework.py"
, line 1, in
from . import yolo
File "C:\Users\Shoaib\Desktop\YOLO_Object_Detection\darkflow\net\yolo__init__
.py", line 2, in
from . import predict
File "C:\Users\Shoaib\Desktop\YOLO_Object_Detection\darkflow\net\yolo\predict.
py", line 7, in
from ...cython_utils.cy_yolo_findboxes import yolo_box_constructor
File "darkflow\cython_utils\cy_yolo_findboxes.pyx", line 1, in init darkflow.c
ython_utils.cy_yolo_findboxes
import numpy as np
ModuleNotFoundError: No module named 'nms'

Please can someone help resolve this issue?

Same issue here, when I pip install nms, i got error "AttributeError: module 'nms' has no attribute 'pyx_capi'

@ArghyaChatterjee
Copy link

just go to the actual link https://github.com/thtrieu/darkflow. Download the files, delete the previous ones manually and run the commands one by one. I guess it should work now.

@FossilDaddy
Copy link

FossilDaddy commented Mar 12, 2019

I used the first way to install the darflow and I had the same problem in the beginning, but later I solve it by use
image

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