Unknown layer type FIFOQueueV2 in op batch/fifo_queue in function populateNet
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 ...
@devy, is it possible to make a question more readable?
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:
Thanks & Regards, Bala
@Bala , please try a more recent opencv version (not 3.4.1) and see, if you can reproduce it
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'