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

Installation Issues #322

Closed
eslamahmedkhair opened this issue Jul 3, 2017 · 15 comments
Closed

Installation Issues #322

eslamahmedkhair opened this issue Jul 3, 2017 · 15 comments

Comments

@eslamahmedkhair
Copy link

I installed with pip install . Is there anything else that I should do after this step?

Then I tried to execute this
./flow --model cfg/yolo-new.cfg and I got the following error
No module named cy_yolo_findboxes

Looked at other issues such as #168 but the solutions are not consistent with the current repo

for example (From #168 )
cd ./cython_utils python3 setup.py build_ext --inplace cd ..

The directory cython_utils doesn't contain the setup.py in the firstplace, because setup.py appears to be in darkflow-master directory, So I tried executing it in that directory and I got this error
No module named 'setuptools'

Any Hints?

@obendidi
Copy link

obendidi commented Jul 3, 2017

Hello,
just cloned the repo , and got the same issue :
No module named cy_yolo_findboxes
any help would would be appreciated !

@abagshaw
Copy link
Collaborator

abagshaw commented Jul 3, 2017

Instead of running with ./flow can you try just using flow and see if that works?

@eslamahmedkhair
Copy link
Author

eslamahmedkhair commented Jul 4, 2017

can you try just using flow and see if that works?

got flow: command not found

@obendidi
Copy link

obendidi commented Jul 4, 2017

I solved the problem, by installing using pip install -e .
I was using the in-place install at first

@abagshaw
Copy link
Collaborator

abagshaw commented Jul 4, 2017

@eslamahmedkhair Is this working for you now? If you installed using pip install . or pip install -e . then the flow command should be available globally. If you build the cython extensions in place you have to use ./flow in the folder where darkflow is placed.

@eslamahmedkhair
Copy link
Author

eslamahmedkhair commented Jul 5, 2017

it seems that the first installation was unsuccessful because I needed admin rights (i.e. sudo)
Works like a charm now!

One more thing please,

I tried to execute
flow --imgdir sample_img/ --model cfg/yolo-tiny.cfg --load bin/yolo-tiny.weights --gpu 1.0
but I changed --model cfg/yolo-tiny.cfg to --model cfg/tiny-yolo.cfg to match the file name provided in the cfg directory and I got the following error AssertionError: expect 64701556 bytes, found 180357512

@tungalbert99
Copy link
Contributor

Make sure you download the right weights for the correct model. (I think you download the yolo-tiny weights from COCO not from VOC)

@eslamahmedkhair
Copy link
Author

Still I downloaded yolo-voc.weights from darknet and executed:
flow --imgdir sample_img/ --model cfg/yolo-voc.cfg --load bin/yolo-voc.weights --gpu 1.0
and got: Over-read bin/yolo-voc.weights

@eslamahmedkhair
Copy link
Author

OK, so I managed to run the following:
flow --imgdir sample_img/ --model cfg/yolo-voc.cfg --load bin/yolo.weights --gpu 1.0
however, there was no detections at all!! (yolo.weights was obtained from here )

but this: flow --imgdir sample_img/ --model cfg/tiny-yolo-voc.cfg --load bin/tiny-yolo-voc.weights --gpu 1.0
did some detections but the quality/accuracy was too low as this is the tiny model (tiny-yolo-voc.weights was obtained from here)

Any reason why the yolo-voc.weights produces no detections?!

@eslamahmedkhair
Copy link
Author

HINT: Use all the cfgs and weights from here, the ones that are provided within the repo has be tempered with somehow!

@JosephWatkins
Copy link

I'm having some difficulties and would appreciate any help you can provide. I've copied the weights in the bin folder and am now receiving the following error: (newcvtest)

bash-3.2$ flow --model cfg/yolo-tiny.cfg --load bin/tiny-yolo.weights
Traceback (most recent call last):
File "/anaconda3/bin/flow", line 4, in
import('pkg_resources').require('darkflow==1.0.0')
File "/anaconda3/lib/python3.6/site-packages/pkg_resources/init.py", line 3147, in
@_call_aside
File "/anaconda3/lib/python3.6/site-packages/pkg_resources/init.py", line 3131, in _call_aside
f(*args, **kwargs)
File "/anaconda3/lib/python3.6/site-packages/pkg_resources/init.py", line 3160, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/anaconda3/lib/python3.6/site-packages/pkg_resources/init.py", line 666, in _build_master
ws.require(requires)
File "/anaconda3/lib/python3.6/site-packages/pkg_resources/init.py", line 984, in require
needed = self.resolve(parse_requirements(requirements))
File "/anaconda3/lib/python3.6/site-packages/pkg_resources/init.py", line 870, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'darkflow==1.0.0' distribution was not found and is required by the application
(newcvtest) bash-3.2$

Darkflow is installed, so I'm not certain what's wrong here. Your feedback is greatly appreciated!

@AdamSzendrei
Copy link

did somebody find out the problem with the error message?
pkg_resources.DistributionNotFound: The 'darkflow==1.0.0' distribution was not found and is required by the application

I have the same issue

@JakupGuven
Copy link

JakupGuven commented Apr 13, 2018

I have the same issue as well

Traceback (most recent call last):
File "/usr/local/bin/flow", line 4, in
import('pkg_resources').require('darkflow==1.0.0')
File "/home/jakup/.local/lib/python3.5/site-packages/pkg_resources/init.py", line 3088, in
@_call_aside
File "/home/jakup/.local/lib/python3.5/site-packages/pkg_resources/init.py", line 3072, in _call_aside
f(*args, **kwargs)
File "/home/jakup/.local/lib/python3.5/site-packages/pkg_resources/init.py", line 3101, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/home/jakup/.local/lib/python3.5/site-packages/pkg_resources/init.py", line 574, in _build_master
ws.require(requires)
File "/home/jakup/.local/lib/python3.5/site-packages/pkg_resources/init.py", line 892, in require
needed = self.resolve(parse_requirements(requirements))
File "/home/jakup/.local/lib/python3.5/site-packages/pkg_resources/init.py", line 778, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'darkflow==1.0.0' distribution was not found and is required by the application

@DaveVoyles
Copy link

Same issue.

@rgoes
Copy link

rgoes commented Jun 19, 2018

Please, someone help me, I am having the same issue. After running the flow command, it opens a file containing,

#!C:\Users\rgoes\Anaconda3\python.exe

EASY-INSTALL-DEV-SCRIPT: 'darkflow==1.0.0','flow'

requires = 'darkflow==1.0.0'
import('pkg_resources').require('darkflow==1.0.0')
file = 'C:\RenaultProjects\yolo_project\darkflow\flow'
exec(compile(open(file).read(), file, 'exec'))

Best,

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

9 participants