Tensorflow YOLO module in OpenCV 3.2

asked 2017-06-20 01:06:57 -0600

asobti gravatar image

I was trying to run the Tiny YOLO Model using the DNN Module. I'm getting the following error:

Pad:Pad(input)(Pad/paddings) Tpaddings:[ ] T:0 OpenCV Error: Unspecified error (Unknown layer type Pad in op Pad) in populateNet, file /home/asobti/opencv_contrib/modules/dnn/src/tensorflow/tf_importer.cpp, line 729 terminate called after throwing an instance of 'cv::Exception' what(): /home/asobti/opencv_contrib/modules/dnn/src/tensorflow/tf_importer.cpp:729: error: (-2) Unknown layer type Pad in op Pad in function populateNet

It seems like the layer "Pad" is not implemented in the importer. Is there a workaround for this?

edit retag flag offensive close merge delete

Comments

We've prepared some version of Pad operation at PR #9287. But there are some restrictions: only one dimension might be padded and only "from the right side". Could you try it?

dkurtaev gravatar imagedkurtaev ( 2017-08-02 04:58:12 -0600 )edit