Darkflow: No module named 'nms'

Created on 1 Dec 2017  路  6Comments  路  Source: thtrieu/darkflow

File "darkflow/cython_utils/cy_yolo_findboxes.pyx", line 1, in init cy_yolo_findboxes
import numpy as np
ImportError: No module named 'nms'

I get this type of error, b4 I got error "No module named 'darkflow.cli" but I "fixed" it just with pasting darflow folder into 'usr/local/bin"

System is Ubuntu 16.04

How to make program working?

Ps. It hapens when I try to run:
flow --model cfg/yolo-new.cfg --load bin/yolo-new.weights --demo videofile.avi --gpu 1.0 (I have tensorflow gpu version)

Most helpful comment

I went through this and few more issues on the way. I made a quick post about how I solved everything:
https://wp.me/p4EFkR-aw

Hope it helps!

All 6 comments

Did you follow the instructions here? https://github.com/thtrieu/darkflow#getting-started. I don't think pasting darkflow into the bin will "fix" it

I had the same issue. I think I might've fixed it by moving file "nms.cp36-win_amd64.pyd" from folder darkflow > cython_utils to the master folder with setup.py.

I went through this and few more issues on the way. I made a quick post about how I solved everything:
https://wp.me/p4EFkR-aw

Hope it helps!

@keponk thanks! Worked like a charm!

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?

did you performed python setup.py install ?

this setup.py build several c extensions for dataflow and that installs nms actually.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bareblackfoot picture bareblackfoot  路  4Comments

ShawnDing1994 picture ShawnDing1994  路  4Comments

hrshovon picture hrshovon  路  5Comments

wonny2001 picture wonny2001  路  4Comments

Khobzer picture Khobzer  路  5Comments