This repository contains code for fall detection, capable of running on both GPU (with CUDA support) and CPU. The program analyzes input data to detect falls in real time.
- GPU Execution: Ensure your system has a CUDA-supported GPU and that CUDA drivers are properly installed. Refer- https://docs.nvidia.com/cuda/cuda-installation-guide-linux/
- CPU Execution: No special hardware requirements.
Clone this repository to your local machine-
git clone https://github.com/sahithchada/fall_detect.gitInstall all the requirements using-
pip3 install -r requirements.txtDownloading the model Download the weights from google drive link below and place it inside Models directory-
https://drive.google.com/drive/folders/1rZit5YD-Cvx_lhvEKrE5iPIRsNzR6Lir?usp=sharingRunning Source Code
python3 blur_face_and_detect.pyIf your system has a GPU with CUDA support, follow these steps to run the fall detection program:
- Open the directory in your terminal:
cd fall_detect_x64_package - Make the GPU executable file runnable (this needs to be done only once):
chmod +x fall_detect_gpu
- Run the GPU version of the fall detection program:
./fall_detect_gpu
If you are using a CPU, follow these steps to run the fall detection program:
- Open the directory in your terminal:
cd fall_detect_x64_package - Make the CPU executable file runnable (this needs to be done only once):
chmod +x fall_detect_cpu
- Run the CPU version of the fall detection program:
./fall_detect_cpu
The program will output the detection results to a separate window.