I don’t see you using your GPU to process this in your python script.
net.setPreferableBackend(cv2.dnn.DNN_BACKEND_CUDA)
net.setPreferableTarget(cv2.dnn.DNN_TARGET_CUDA)
again please read this:
and this for more help:
Sorry im not a python guy or I’d be able to help you more. Want to do this inTensorFlow.js nodejs I’d be of more help 2 you.
1 Like