# Revision history [back]

Hi, I am trying to use DNN with threading for executing operation on video frame-wise. What I had done so far is:

I had read net from disk using net = cv2.dnn.readNetFromTensorflow(weightsPath, configPath) . I am doing threading with 3 threads. First thread is running correctly but for 2nd and 3rd thread it is throwing error:- cv2.error: OpenCV(3.4.4) /io/opencv/modules/dnn/src/dnn.cpp:834: error: (-215:Assertion failed) ld.inputBlobs[0]->total() == total(shapes[index]) in function 'allocateBlobsForLayer'. Is it because only one thread can access net at particular time or Is DNN not supports threading or some other reasons?

I can share my code if needed.

I had read net from disk using net = cv2.dnn.readNetFromTensorflow(weightsPath, configPath) . I am doing threading with 3 threads. First thread is running correctly but for 2nd and 3rd thread it is throwing error:- cv2.error: OpenCV(3.4.4) /io/opencv/modules/dnn/src/dnn.cpp:834: error: (-215:Assertion failed) ld.inputBlobs[0]->total() == total(shapes[index]) in function 'allocateBlobsForLayer'. Is it because only one thread can access net at particular time or Is DNN not supports threading or some other reasons?