Ask Your Question

Revision history [back]

Unable to import tensorflow object detection model in opencv dnn ?

Hi everyone, I had trained tensorflow object detection model with my own dataset and I had obtained the .pb and .prototxt files after training. When I tried to load the model and prototxt file in this opencv dnn sample code, I am always getting an error saying that cv.dnn.readNetFromTensorflow() accepts only 1 argument but 2 arguments given. But in the sample code 2 arguments are given. I new to opencv and dnn and don't know how to load the .pb tensorflow file into the opencv dnn code. Should I make any modifications ? Please help me . Thanks :)

Unable to import tensorflow object detection model in opencv dnn ?

Hi everyone, I had trained tensorflow object detection model with my own dataset and I had obtained the .pb and .prototxt files after training. When I tried to load the model and prototxt file in this opencv dnn sample code, I am always getting an error saying that cv.dnn.readNetFromTensorflow() accepts only 1 argument but 2 arguments given. But in the sample code 2 arguments are given. I new to opencv and dnn and don't know how to load the .pb tensorflow file into the opencv dnn code. Should I make any modifications ? Please help me . Thanks :)