Closed Dipanshu010 closed 1 year ago
You did not specify any arguments. Look back into readme.
Alright. so I am trying to do the project and it shows this:
Edit requirements.txt and move cmake to the first place and then run installing dependencies again.
After editing the txt file this is showing:
I don't understand what seems to be the problem. But it is not resolving it. It shows "Building dlib" failed.
I also tried running the same command on Spyder. It shows the same error as in the VS code above.
Please refer to the information from error message you posted - it quite clearly states how to solve the problem.
Okay. So the requirement.txt file worked Now this is coming:
This one is in Spyder Notebook.
Check if all the folders (detector / tracker / utils) are in the place with contents as in the original repo.
I downloaded the zip file as it was given in the repo. All the folders are in place with contents.
I really need to work this project out But it doesn't run: All the folders are in place with the contents. What do I do to fix it?. Chat gpt say to install tracker which is already installed.
There is some issue with importing TrackableObject function from tracker folder and trackableobject.py file. Check if the file contains function definition. If yes - try moving function definition directly to the code.
The trackableobject.py contains function definition. I tried it moving that piece of code into people_counter.py but it is still not working. Same error occurs.
Did you remove import line after moving that definition into main code file?
After removing the import line:
Please check if the python version (python --version or python3 --version) matches the one used by the creator of repo (3.11.3). I did use it with python 3.9 and 3.10. Also check (pip list) if the versions match those in requirements.txt.
Its 3.8.5. I'm installing 3.11.3
After Updating everything this oocurs:
Show me your pip list
Why are there only 2?
Necessary requirements from requirements.txt are not installed on your instance. First install cmake (pip install cmake) and then follow with pip install -r requirements.txt
Ok
It's working. The project worked. Thank you so much for the help. Appreciate it
It's working. The project worked. Thank you so much for the help. Appreciate it
Glad I could help, and I hope you have fun!
usage: people_counter.py [-h] [-p PROTOTXT] -m MODEL [-i INPUT] [-o OUTPUT] [-c CONFIDENCE] [-s SKIP_FRAMES]
people_counter. py: error: the following arguments are required: -m/--model