tugot17 / YOLO-Object-Counting-API

The code of the Object Counting API, implemented with the YOLO algorithm and with the SORT algorithm
GNU General Public License v3.0
210 stars 57 forks source link

No module named 'darkflow.cython_utils.cy_yolo_findboxes #2

Closed Limbomike closed 4 years ago

Limbomike commented 4 years ago

Hey guys,

let's start this issue from the beginning what I have done so far:

  1. Darkflow is already on virtual env.
  2. I created my own darkflow model from scratch - which is also working because he is detecting my objects properly on video and images
  3. Now I was trying to implement a counting algorithm, and came across this thread. Since this is exactly the way I want to do it, by letting objects pass a line and then count them I thought I'll give it a shot.
  4. I installed darkflow globally with pip install -e. . This should have worked, because if i pip show darkflow I get the following output: Name: darkflow Version: 1.0.0 Summary: Darkflow Home-page: https://github.com/thtrieu/darkflow Author: UNKNOWN Author-email: UNKNOWN License: GPLv3 Location: MyLocation Requires: Required-by:

Now to the Problem: No module named 'darkflow.cython_utils.cy_yolo_findboxes

The Location MyLocation, however, is not the same as this repo. To fix this I treid following:

  1. Merge all the files together, so that the old darkflow repo and the new YOLO API from here would match, and all the new files are inserted.
  2. This led me to the next problem `No module named 'filterpy'

Would really appreciate some help. Like already said I have my, from scratch trained yolo model, with the 4 ckpt files (where I use XXX.meta file as weights file) and would love to count my objects if they pass a specific line in the video. I think the harder part is already done with the model creation, but I dont have the insights in the code to fully understand where I get all my coordinates for the bounding boxes to calculate centroids and furthermore assign IDs and count those.

BR

tugot17 commented 4 years ago

Did You try to install dependencies globally using pip3 install .?

Limbomike commented 4 years ago

Yeah, dependencies are globally installed

Tensorflow version 1.15 Opencv-contrib-python version 4.1.2.30

Since this might be the problem, I made a new virtual env and installed all dependencies again. This time following the versions in the description:

Now I still get following error: ModuleNotFoundError: No module named 'darkflow.cython_utils.cy_yolo_findboxes'

Limbomike commented 4 years ago

So I guess I fixed the upper problem,

you also need to dowload following packages to make everything work smoothly:

Running everything from CMD-Line.

Still having some issues but not to this topic, so I will close the thread

BR