Skip to content

Kiryuumaru/SpaceBetweenUs

Repository files navigation

Alturos.Yolo

SpaceBetweenUs

A state of the art real-time human social distance detection system for C# (Visual Studio). This project has CPU and GPU support, with GPU the detection works much faster. In the background we use the Windows Yolo version of AlexeyAB/darknet. Send an image path or the byte array to yolo and receive the position of the detected objects. Our project is meant to return the object-type -position and -distance as processable data. This library supports YoloV3 and YoloV2 Pre-Trained Datasets

Sample

sample

Performance

It is important to use GPU mode for fast object detection. It is also important not to instantiate the wrapper over and over again. A further optimization is to transfer the images as byte stream instead of passing a file path. GPU detection is usually 10 times faster!

System requirements

GPU requirements (optional)

It is important to use the mentioned version 10.2

  1. Install the latest Nvidia driver for your graphic device
  2. Install Nvidia CUDA Toolkit 10.2 (must be installed add a hardware driver for cuda support)
  3. Download Nvidia cuDNN v7.6.5 for CUDA 10.2
  4. Copy the cudnn64_7.dll from the output directory of point 2. into the project folder.

Build requirements

Benchmark / Performance

Average processing speed of test frames

CPU

Processor YOLOv2-tiny YOLOv3 yolo9000
Intel i7 3770 260 ms 2200 ms -
Intel Xeon E5-1620 v3 207 ms 4327 ms -
Intel Xeon E3-1240 v6 182 ms 3213 ms -

GPU

Graphic card Single precision Memory Slot YOLOv2-tiny YOLOv3 yolo9000
NVIDIA Quadro K420 300 GFLOPS 2 GB Single - - -
NVIDIA Quadro K620 768 GFLOPS 2 GB Single - - -
NVIDIA Quadro K1200 1151 GFLOPS 4 GB Single - - -
NVIDIA Quadro P400 599 GFLOPS 2 GB Single - - -
NVIDIA Quadro P600 1117 GFLOPS 2 GB Single - - -
NVIDIA Quadro P620 1386 GFLOPS 2 GB Single - - -
NVIDIA Quadro P1000 1862 GFLOPS 4 GB Single - - -
NVIDIA Quadro P2000 3011 GFLOPS 5 GB Single - - -
NVIDIA Quadro P4000 5304 GFLOPS 8 GB Single - - -
NVIDIA Quadro P5000 8873 GFLOPS 16 GB Dual - - -
NVIDIA GeForce GT 710 366 GFLOPS 2 GB Single - - -
NVIDIA GeForce GT 730 693 GFLOPS 2-4 GB Single - - -
NVIDIA GeForce GT 1030 1098 GFLOPS 2 GB Single 40 ms 160 ms -
NVIDIA GeForce GTX 1060 4372 GFLOPS 6 GB Dual 25 ms 100 ms -

Troubleshooting

If you have some error like DllNotFoundException use Dependencies to check all references are available for yolo_cpp_dll_gpu.dll

If you have some error like NotSupportedException check if you use the latest Nvidia driver

Debugging Tool for Nvidia Gpu

Check graphic device usage "%PROGRAMFILES%\NVIDIA Corporation\NVSMI\nvidia-smi.exe"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published