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

error in getting started #6

Open Hatem-Jr opened 3 years ago

Hatem-Jr commented 3 years ago

Hi I cloned another repo that uses tensor flow that has the same getting started section however I tried all 3 ways of and the last one did this: 124121820-a50c2f00-da75-11eb-8cd7-034ff6ba59da 124121806-a0e01180-da75-11eb-9bbf-efea0f3abe12 124121809-a2a9d500-da75-11eb-88d9-bc744ecdfc51 124121813-a3426b80-da75-11eb-9af4-a2ff33f84945

tugot17 commented 3 years ago

Seems like a darkflow issue. Did you try solving it like in #849 darkflow issue?

Hatem-Jr commented 3 years ago

the solution of JaronrH I got stuck at number 6 and that was the error:

D:\custom code\YOLO-Object-Counting-API>setup.py build_ext --inplace Traceback (most recent call last): File "D:\custom code\YOLO-Object-Counting-API\setup.py", line 3, in from Cython.Build import cythonize ModuleNotFoundError: No module named 'Cython'

Even though all requirements already were satisfied in points 3,4,5

Hatem-Jr commented 3 years ago

can you tell me all the modules that I should install even before the getting started section ? (with their cmd install commands ?)

tugot17 commented 3 years ago

Have you tried all 3 options described in Getting started section of the Readme??

Hatem-Jr commented 3 years ago

option 1: D:\custom code\YOLO-Object-Counting-API>python3 setup.py build_ext --inplace Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

option 2: Screenshot (5)

and option 3 as above

tugot17 commented 3 years ago

Maybe try using anaconda and replace python3 with python?

Hatem-Jr commented 3 years ago

D:\custom code\YOLO-Object-Counting-API>python setup.py build_ext --inplace running build_ext copying build\lib.win-amd64-3.8\darkflow\cython_utils\nms.cp38-win_amd64.pyd -> darkflow\cython_utils copying build\lib.win-amd64-3.8\darkflow\cython_utils\cy_yolo2_findboxes.cp38-win_amd64.pyd -> darkflow\cython_utils copying build\lib.win-amd64-3.8\darkflow\cython_utils\cy_yolo_findboxes.cp38-win_amd64.pyd -> darkflow\cython_utils

but when running the count_cars_crossing_virtual_line.py this error occurs: PS D:\custom code\YOLO-Object-Counting-API> & C:/Users/Owner/AppData/Local/Programs/Python/Python39/python.exe "d:/custom code/YOLO-Object-Counting-API/count_cars_crosing_virtual_line.py" Traceback (most recent call last): File "d:\custom code\YOLO-Object-Counting-API\count_cars_crosing_virtual_line.py", line 2, in from object_counting_api import ObjectCountingAPI File "d:\custom code\YOLO-Object-Counting-API\object_counting_api.py", line 1, in from darkflow.net.build import TFNet File "d:\custom code\YOLO-Object-Counting-API\darkflow\net\build.py", line 1, in import tensorflow as tf ModuleNotFoundError: No module named 'tensorflow'

tugot17 commented 3 years ago

Did you try installing tensroflow?

pip install tensorflow?

Hatem-Jr commented 3 years ago

requirement already satisfied in the cmd but somehow when I run this count_cars_crossing_virtual_line.py the error above happens, also I tried adding imports in that file still same error but I might have an idea what is your running environment in vscode? my current one is: C:/Users/Owner/AppData/Local/Programs/Python/Python39/python.exe I tried using different environments but had more errors than just: ModuleNotFoundError: No module named 'tensorflow'

Screenshot (6)

Hatem-Jr commented 3 years ago

everything is installed correctly and option 1 in the read me file worked problem is when running this: C:/Users/Owner/AppData/Local/Programs/Python/Python39/python.exe "d:/custom code/YOLO-Object-Counting-API/count_cars_crosing_virtual_line.py" this error appears: "ModuleNotFoundError: No module named "tensorflow" even though tensor flow is installed correctly in the comment above is there anymore modules I should install in order to get the counting to work (before even the getting started part in readme) ?