Pine icon indicating copy to clipboard operation
Pine copied to clipboard

How to enable Cuda Acceleration?

Open ixayy opened this issue 5 years ago • 10 comments

I've installed the toolkit, cant seem to understand how to enable the Acceleration inside of Pine however.

ixayy avatar Sep 08 '19 08:09 ixayy

There's a bug right now that makes acceleration always appear as off. Just make sure you have the CUDA drivers installed and everything should work fine.

Acceleration is enabled but it just doesn't tell you -- I'm working on a bug fix for this.

petercunha avatar Sep 24 '19 23:09 petercunha

I still only get about 20fps though, is that expected from a 1050 Ti or should it be higher?

ixayy avatar Sep 29 '19 20:09 ixayy

I still only get about 20fps though, is that expected from a 1050 Ti or should it be higher?

@ixayy should be higher I get about 150 using a 1060

Sent with GitHawk

xrv0 avatar Oct 11 '19 15:10 xrv0

I still only get about 20fps though, is that expected from a 1050 Ti or should it be higher?

@ixayy should be higher I get about 150 using a 1060

Sent with GitHawk

Could you possibly give me the instructions to properly get the acceleration working? I feel like I've done something wrong here.

ixayy avatar Oct 12 '19 21:10 ixayy

Make sure you installed cuda and cuDDN correctly. If it still doesnt work, you could try to compile darknet and see if you get any errors

xrv0 avatar Oct 13 '19 20:10 xrv0

Make sure you installed cuda and cuDDN correctly. If it still doesnt work, you could try to compile darknet and see if you get any errors

I use it darknet with GTX 1070. I installed Cuda and CuDDN. Working.

I couldn't solve this problem. cuda

OzgunKB avatar Nov 24 '19 09:11 OzgunKB

You need to have a custom-built OpenCV with Cuda enabled

FidgetySo avatar Dec 06 '19 19:12 FidgetySo

@AutisticDragon just install opencv-contrib-python or make own build with WITH_CUDA=ON ?

bakaInc avatar Mar 02 '20 12:03 bakaInc

980ti, going at about 30 fps, while CUDA seems OFF. Why is this? anybody can help?

regiumlepidi avatar Mar 22 '20 16:03 regiumlepidi

980ti, going at about 30 fps, while CUDA seems OFF. Why is this? anybody can help?

go to pine/lib/pine.py edit and search and then replace # load our YOLO object detector trained on COCO dataset (2 classes) # and determine only the output layer names that we need from YOLO print("[INFO] loading neural-network from disk...") net = cv2.dnn.readNetFromDarknet(configPath, weightsPath) net.setPreferableBackend(cv2.dnn.DNN_BACKEND_CUDA) net.setPreferableTarget(cv2.dnn.DNN_TARGET_CUDA)

make sure both are cuda

YADJ123 avatar Dec 26 '20 12:12 YADJ123