Unknown layer type FIFOQueueV2 in op batch/fifo_queue in function populateNet

asked 2018-01-31 02:09:04 -0600

devy gravatar image

updated 2018-10-12 04:00:19 -0600

berak gravatar image

I have ran the code freeze_graph.py and optimize_for_inference.py,and there is a final_network.pb generated, when I imported the final_network.pb in DNN with opencv,there is something wrong like this:

batch/fifo_queue:FIFOQueueV2
capacity:[ ]
component_types:[ ]
_output_shapes:[ ]
container:[ ]
shapes:[ ]
shared_name:[ ]
OpenCV Error: Unspecified error (Unknown layer type FIFOQueueV2 in op batch/fifo_queue) in populateNet, file /home/mi/opencv-3.4.0/modules/dnn/src/tensorflow/tf_importer.cpp, line 1487
terminate called after throwing an instance of 'cv::Exception'
what(): /home/mi/opencv-3.4.0/modules/dnn/src/tensorflow/tf_importer.cpp:1487: error: (-2) Unknown layer type FIFOQueueV2 in op batch/fifo_queue in function populateNet

and I checked the model:

FIFOQueueV2
Const
QueueDequeueManyV2
Const
Const
Pad
Conv2D
Const
Mul
Abs
Const
Mul
Add
Const
Const
Pad
Conv2D
Const
Const
Const
Mean
StopGradient
Const
Sub
SquaredDifference
Const
Sum
Const
Sum
Const
Reshape
Reciprocal
Mul
Add
Mul
Square
Sub
Const
Add
Rsqrt
Mul
Mul
Mul
Sub
Add
Const
Mul
Abs
Const
Mul
Add
Const
Const
Pad
Conv2D
Const
Const
Const
Mean
StopGradient
Const
Sub
SquaredDifference
Const
Sum
Const
Sum
Const
Reshape
Reciprocal
Mul
Add
Mul
Square
Sub
Const
Add
Rsqrt
Mul
Mul
Mul
Sub
Add
Const
Mul
Abs
Const
Mul
Add
Const
Const
Pad
Conv2D
Const
Const
Const
Mean
StopGradient
Const
Sub
SquaredDifference
Const
Sum
Const
Sum
Const
Reshape
Reciprocal
Mul
Add
Mul
Square
Sub
Const
Add
Rsqrt
Mul
Mul
Mul
Sub
Add
Const
Mul
Abs
Const
Mul
Add
Const
Const
Pad
Conv2D
Const
Const
Const
Mean
StopGradient
Const
Sub
SquaredDifference
Const
Sum
Const
Sum
Const
Reshape
Reciprocal
Mul
Add
Mul
Square
Sub
Const
Add
Rsqrt
Mul
Mul
Mul
Sub
Add
Const
Mul
Abs
Const
Mul
Add
Const
Const
Pad
Conv2D
Const
Const
Const
Mean
StopGradient
Const
Sub
SquaredDifference
Const
Sum
Const
Sum
Const
Reshape
Reciprocal
Mul
Add
Mul
Square
Sub
Const
Add
Rsqrt
Mul
Mul
Mul
Sub
Add
Const
Mul
Abs
Const
Mul
Add
Const
Const
Pad
Conv2D
Const
Const
Const
Mean
StopGradient
Const
Sub
SquaredDifference
Const
Sum
Const
Sum
Const
Reshape
Reciprocal
Mul
Add
Mul
Square
Sub
Const
Add
Rsqrt
Mul
Mul
Mul
Sub
Add
Const
Mul
Abs
Const
Mul
Add
Const
Const
Pad
Conv2D
Const
Const
Const
Mean
StopGradient
Const
Sub
SquaredDifference
Const
Sum
Const
Sum
Const
Reshape
Reciprocal
Mul
Add
Mul
Square
Sub
Const
Add
Rsqrt
Mul
Mul
Mul
Sub
Add
Relu
Const
Const
Conv2DBackpropInput
Const
Const
Const
Mean
StopGradient
Const
Sub
SquaredDifference
Const
Sum
Const
Sum
Const
Reshape
Reciprocal
Mul
Add
Mul
Square
Sub
Const
Add
Rsqrt
Mul
Mul
Mul
Sub
Add
Const
Const
Const
Const
RandomUniform
Sub
Mul
Add
Add
Floor
RealDiv
Mul
Const
ConcatV2
Relu
Const
Const
Conv2DBackpropInput
Const
Const
Const
Mean
StopGradient
Const
Sub
SquaredDifference
Const
Sum
Const
Sum
Const
Reshape
Reciprocal
Mul
Add
Mul
Square
Sub
Const
Add
Rsqrt
Mul
Mul
Mul
Sub
Add
Const
Const
Const
Const
RandomUniform
Sub
Mul
Add
Add
Floor
RealDiv
Mul
Const
ConcatV2
Relu
Const
Const
Conv2DBackpropInput
Const
Const
Const
Mean
StopGradient
Const
Sub
SquaredDifference
Const
Sum
Const
Sum
Const
Reshape
Reciprocal
Mul
Add
Mul
Square
Sub
Const ...
(more)
edit retag flag offensive close merge delete

Comments

@devy, is it possible to make a question more readable?

dkurt gravatar imagedkurt ( 2018-01-31 03:10:18 -0600 )edit

Hi, I'm also getting a same error while loading "inception_v3_quant_frozen.pb" model in dnn tensorflow inception

Is it anyway to solve this issue?

Error log:

batch/fifo_queue:FIFOQueueV2
sh[ 9730.019246] audit: type=1701 audit(1539333969.163:18): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=4811 comm="example_dnn_tf_" exe="/us
r/share/OpenCV/samples/bin/example_dnn_tf_inception" sig=6
apes:[ ]
shared_name:[ ]
capacity:[ ]
component_types:[ ]
container:[ ]
OpenCV(3.4.1) Error: Unspecified error (Unknown layer type FIFOQueueV2 in op batch/fifo_queue) in populateNet,

Thanks & Regards, Bala

balasubramaniyam gravatar imagebalasubramaniyam ( 2018-10-12 03:56:40 -0600 )edit

@Bala , please try a more recent opencv version (not 3.4.1) and see, if you can reproduce it

berak gravatar imageberak ( 2018-10-12 04:01:56 -0600 )edit

Hi Berak,

Got different error in OpenCV(3.4.3)

OpenCV(3.4.3) /usr/src/debug/opencv/3.4.1+gitAUTOINC+6ffc48769a_ced5aa7606_a62e20676a_34e4206aef_fccf7cd6a4-r0/git/modules/dnn/src/tensorflow/tf_importer.cpp:495: error: (-2:Unspecified error) Input layer not found: MobilenetV2/Conv/add_fold in function 'connect'

balasubramaniyam gravatar imagebalasubramaniyam ( 2018-10-12 08:22:54 -0600 )edit