Ank-Cha / Social-Distancing-Analyser-COVID-19

A social distancing analyzer AI tool to regulate social distancing protocol using video surveillance of CCTV cameras and drones. Social Distancing Analyser to prevent COVID19

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how can be run it with GPU

ZIKO94ZIKO opened this issue · comments

Hi Ank thank you for sharing witth us your project , i have i question about GPU:
when i run you code and watch nvidia-smi in an other terminal , the code pythone use juste 41 MiB in the performance of GPU , how can be use all performance , Thanks in advance .
image

any update please

this code is designed and optimised to work with CPU only wait a little for GPU version Volume 3.0

add these two lines after this

net.setPreferableBackend(cv2.dnn.DNN_BACKEND_CUDA)
net.setPreferableTarget(cv2.dnn.DNN_TARGET_CUDA)