saimj7 / People-Counting-in-Real-Time

People Counting in Real-Time with an IP camera.
MIT License
528 stars 263 forks source link

m/--model #63

Closed Dipanshu010 closed 1 year ago

Dipanshu010 commented 1 year ago

usage: people_counter.py [-h] [-p PROTOTXT] -m MODEL [-i INPUT] [-o OUTPUT] [-c CONFIDENCE] [-s SKIP_FRAMES]

people_counter. Screenshot 2023-06-05 194923 py: error: the following arguments are required: -m/--model

m-marcjanik commented 1 year ago

You did not specify any arguments. Look back into readme.

2012215 commented 1 year ago

Alright. so I am trying to do the project and it shows this: image image image

m-marcjanik commented 1 year ago

Edit requirements.txt and move cmake to the first place and then run installing dependencies again.

2012215 commented 1 year ago

After editing the txt file this is showing: image image image image image image image

2012215 commented 1 year ago

I don't understand what seems to be the problem. But it is not resolving it. It shows "Building dlib" failed.

2012215 commented 1 year ago

I also tried running the same command on Spyder. It shows the same error as in the VS code above.

m-marcjanik commented 1 year ago

Please refer to the information from error message you posted - it quite clearly states how to solve the problem.

2012215 commented 1 year ago

Okay. So the requirement.txt file worked Now this is coming: image

2012215 commented 1 year ago

image This one is in Spyder Notebook.

m-marcjanik commented 1 year ago

Check if all the folders (detector / tracker / utils) are in the place with contents as in the original repo.

2012215 commented 1 year ago

I downloaded the zip file as it was given in the repo. All the folders are in place with contents. image

2012215 commented 1 year ago

I really need to work this project out But it doesn't run: image All the folders are in place with the contents. image What do I do to fix it?. Chat gpt say to install tracker which is already installed.

m-marcjanik commented 1 year ago

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.

2012215 commented 1 year ago

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.

m-marcjanik commented 1 year ago

Did you remove import line after moving that definition into main code file?

2012215 commented 1 year ago

After removing the import line: image

m-marcjanik commented 1 year ago

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.

2012215 commented 1 year ago

Its 3.8.5. I'm installing 3.11.3

2012215 commented 1 year ago

After Updating everything this oocurs: image image

m-marcjanik commented 1 year ago

Show me your pip list

2012215 commented 1 year ago

Why are there only 2? image

m-marcjanik commented 1 year ago

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

2012215 commented 1 year ago

Ok

2012215 commented 1 year ago

image image

2012215 commented 1 year ago

It's working. The project worked. Thank you so much for the help. Appreciate it

m-marcjanik commented 1 year ago

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!

Dipanshu010 commented 1 year ago
Hey, can you please reupload this project I’m finding some difficulties in it  Sent from Mail for Windows From: 2012215Sent: 28 June 2023 18:48To: saimj7/People-Counting-in-Real-TimeCc: Dipanshu010; AuthorSubject: Re: [saimj7/People-Counting-in-Real-Time] m/--model (Issue #63) It's working. The project worked.Thank you so much for the help. Appreciate itGlad I could help, and I hope you have fun!And I'm sorry to bother you or caused you any kind of discomfort.Thank you once again—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>