Skip to content

deepchatterjeevns/Suspicious-Activity-Detection-Using-Pose-Estimation

 
 

Repository files navigation

🎥 🏃 🏃 Suspicious-Activity-Detection-Using-Pose-Estimation

ezgif com-optimize

📝 Description

  • This implemantation is based on official AlphaPose Pose Estimation Algorithm.
  • It is ‘AlphaPose’ & ‘XGBOOST’ based “Suspicious-Activity-Detection-Using-Pose Estimation” project.
  • Purpose of this project is to make a system which can detect if someone is trying to Climb a house compound wall, Climbing on Fence, Climbing on gate & trying to do some suspicious activity.
  • This model will detect this activities accurately & helps to prevent those kind of activities by giving real time feedback.

🎯 Inference demo

im1_HSP img2_HSP

🏽‍ Download Object Detection Model

🏽‍ For Pose Tracking, Download the object tracking model

🏽‍ Download Fast.res50.pt file

🖥️ Installation

🛠️ Requirements

⚙️ Setup on Colab

  1. Install PyTorch :-
$ !pip3 install torch==1.1.0 torchvision==0.3.0
  1. Git Clone :-
$ !git clone https://github.com/akshaykadam771/Suspicious-Activity-Detection-Using-Pose-Estimation.git 
  1. Install :-
$ !export PATH=/usr/local/cuda/bin/:$PATH
$ !export LD_LIBRARY_PATH=/usr/local/cuda/lib64/:$LD_LIBRARY_PATH
$ !pip install cython
$ !sudo apt-get install libyaml-dev
$ !python setup.py build develop --user
$ !python -m pip install Pillow==6.2.1
$ !pip install -U PyYAML

🎯 Inference

  1. Testing with Images ( Put test images in AlphaPose/examples/demo/ ) :-
$ !python scripts/demo_inference.py --cfg configs/coco/resnet/256x192_res50_lr1e-3_1x.yaml --checkpoint pretrained_models/fast_res50_256x192.pth --indir examples/demo/ --save_img
  1. Output Images & json file will save in bydefault AlphaPose/examples/res folder.

  2. Testing with Videos :-

$ !python scripts/demo_inference.py --cfg configs/coco/resnet/256x192_res50_lr1e-3_1x.yaml --checkpoint pretrained_models/fast_res50_256x192.pth --video examples/video/demo5.mp4 --outdir examples/res --save_video --gpus 0
  1. If it is giving memory error during Videos testing you can add --sp argument in command which enable Single processing :-
$ !python scripts/demo_inference.py --cfg configs/coco/resnet/256x192_res50_lr1e-3_1x.yaml --checkpoint pretrained_models/fast_res50_256x192.pth --video examples/video/demo5.mp4 --outdir examples/res --save_video --gpus 0 --sp

📂 Json Dataset for training your own custom ML model 🔧 🔩 🔨

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 88.0%
  • Cuda 7.8%
  • C++ 3.8%
  • Other 0.4%