llSourcell / YOLO_Object_Detection

This is the code for "YOLO Object Detection" by Siraj Raval on Youtube
GNU General Public License v3.0
1.73k stars 795 forks source link

ImportError: No module named 'nms' #7

Open rahard opened 6 years ago

rahard commented 6 years ago

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

marlon-rodrigues commented 6 years ago

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

BillCai06 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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

glaizaavila commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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

carlchandev commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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\yoloinit .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\yoloinit .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 commented 5 years ago

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 commented 5 years ago

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