Skip to content

Check how crowded is your favourite beach of Gipuzkoa (Basque Country)

License

Notifications You must be signed in to change notification settings

r3v1/crowded_beach

Repository files navigation

People detection

Wondering how crowded is your favourite beach of Gipuzkoa (Basque Country)?

Prediction example with ResNet 1024x1024 pretrained model

Model

Based on pix2seq, currently using ResNet-50 pretrained model, COCO object detection fine-tuned checkpoints.

Accuracy

Despite of being quite accurate out-of-the-box model, it fails sometimes. This is because the camera is too far from the people. This could be handled fine-tuning the model, but it would be a time consuming task... As a baseline, it is okay.

Installation

Clone the repository and the submodules with

$ git clone --recurse-submodules https://github.com/r3v1/crowded_beach.git

and finally, install the requirements (recommended using a virtual environment):

$ pip install -r requirements.txt

Download models

Just run the Makefile in the root:

$ make download_checkpoints

Running

Example of counting people in Kontxa beach with a threshold of 0.5, saving frames every 15 seconds:

$ python src/predict.py -b Kontxa -s -t 0.5 -d 15

Troubleshooting

ModuleNotFoundError: No module named 'pix2seq'

Try adding to path modules pix2seq and src like:

export PYTHONPATH=.:pix2seq

Similar projects

About

Check how crowded is your favourite beach of Gipuzkoa (Basque Country)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published