thtrieu / darkflow

Translate darknet to tensorflow. Load trained weights, retrain/fine-tune using tensorflow, export constant graph def to mobile devices
GNU General Public License v3.0
6.13k stars 2.08k forks source link

No module named 'nms' #451

Open tugot17 opened 6 years ago

tugot17 commented 6 years ago

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)

ttorkar commented 6 years ago

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

Cackerel commented 6 years ago

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.

keponk commented 6 years ago

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!

marlon-rodrigues commented 6 years ago

@keponk thanks! Worked like a charm!

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?

yesdeepakverma commented 6 years ago

did you performed python setup.py install ?

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