YOLO-Object-Counting-API icon indicating copy to clipboard operation
YOLO-Object-Counting-API copied to clipboard

error in getting started

Open Hatem-Jr opened this issue 3 years ago • 10 comments

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

Hatem-Jr avatar Jul 01 '21 13:07 Hatem-Jr

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

tugot17 avatar Jul 01 '21 13:07 tugot17

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 avatar Jul 01 '21 13:07 Hatem-Jr

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

Hatem-Jr avatar Jul 01 '21 21:07 Hatem-Jr

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

tugot17 avatar Jul 01 '21 22:07 tugot17

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

Hatem-Jr avatar Jul 01 '21 22:07 Hatem-Jr

Maybe try using anaconda and replace python3 with python?

tugot17 avatar Jul 01 '21 22:07 tugot17

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'

Hatem-Jr avatar Jul 01 '21 23:07 Hatem-Jr

Did you try installing tensroflow?

pip install tensorflow?

tugot17 avatar Jul 02 '21 06:07 tugot17

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 avatar Jul 02 '21 08:07 Hatem-Jr

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) ?

Hatem-Jr avatar Jul 02 '21 12:07 Hatem-Jr