roflcoopter / viseron

Self-hosted, local only NVR and AI Computer Vision software. With features such as object detection, motion detection, face recognition and more, it gives you the power to keep an eye on your home, office or any other place you want to monitor.
MIT License
1.5k stars 154 forks source link

Hardware acceleration #771

Closed MPueschel closed 1 week ago

MPueschel commented 2 weeks ago

Hello,

I would like to use hardware acceleration for Darknet. Unfortunately, OpenCV or OpenCL cannot find a suitable hardware/GPU. However, the hardware acceleration works with ffmpeg without any problems. Can you give me a tip on how to get OpenCV/OpenCL to work on the GPU?

As an addition: I have tried it on two machines without success - i5-9500T and G4560T.

Thanks.

roflcoopter commented 2 weeks ago

Can you show me your docker run command? Or docker-compose if you are using that

MPueschel commented 2 weeks ago

Hi roflcoopter, my docker-compose.yml looks like this: _services: viseron: image: roflcoopter/viseron:latest container_name: viseron restart: unless-stopped security_opt:

roflcoopter commented 2 weeks ago

Looks good!

Might be driver compatibility issues, the latest beta, docker tag 3.0.0b7, uses Ubuntu 22.04 as the base image which includes newer drivers. Could you try that?

MPueschel commented 2 weeks ago

Thanks, this fixed my issue.

roflcoopter commented 1 week ago

Great!