<ul dir="auto">
<li>
<p dir="auto">OpenCV = &gt;3.4.1```</p>
</li>
<li>
<p dir="auto">Operating System / Platform =&gt; Windows 64 Bit</p>
</li>
<li>
<p dir="auto">Compiler =&gt; Visual Studio [2017]</p>
</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I have used the Facenet code to train a model and get .ckpt and .meta files. (<a href="https://github.com/davidsandberg/facenet">https://github.com/davidsandberg/facenet</a>). I used freeze_graph.py from tensorflow to get a .pb file from this, and then used the steps here (<a href="https://medium.com/@dibyaranjan.sathua/how-to-use-tensorflow-graph-with-opencv-dnn-module-3bbeeb4920c5" rel="nofollow">https://medium.com/@dibyaranjan.sathua/how-to-use-tensorflow-graph-with-opencv-dnn-module-3bbeeb4920c5</a>) to optimize the model.<br>
Now I've tried calling it in tf_inception.cpp from CV dnn samples, just to see if model would load.</p>
<p dir="auto">My model throws error as</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="batch_join/fifo_queue:FIFOQueueV2
shared_name:[ ]
shapes:[ ]
container:[ ]
component_types:[ ]
capacity:[ ]
OpenCV(3.4.1) Error: Unspecified error (Unknown layer type FIFOQueueV2 in op batch_join/fifo_queue) in cv::dnn::experimental_dnn_v4::`anonymous-namespace'::TFImporter::populateNet, file C:\build\master_winpack-build-win64-vc14\opencv\modules\dnn\src\tensorflow\tf_importer.cpp, line 1582
"><pre class="notranslate"><code class="notranslate">batch_join/fifo_queue:FIFOQueueV2
shared_name:[ ]
shapes:[ ]
container:[ ]
component_types:[ ]
capacity:[ ]
OpenCV(3.4.1) Error: Unspecified error (Unknown layer type FIFOQueueV2 in op batch_join/fifo_queue) in cv::dnn::experimental_dnn_v4::`anonymous-namespace'::TFImporter::populateNet, file C:\build\master_winpack-build-win64-vc14\opencv\modules\dnn\src\tensorflow\tf_importer.cpp, line 1582

</code></pre></div>
<p dir="auto">How do I solve this?</p>
<p dir="auto">=&gt; Is it because the training code has FIFOQueueV2  as part of input pipeline, and CV doesn't recognize it?<br>
=&gt; Am I using the wrong .cpp file to call model?<br>
=&gt; would there be something wrong with my .pb file?</p>
<p dir="auto">thanks!</p>
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV =&gt; 3.1</li>
<li>Operating System / Platform =&gt; Windows 64 Bit</li>
<li>Compiler =&gt; Visual Studio 2015</li>
</ul>
<h5 dir="auto">description</h5>
<p dir="auto">I'm using the tf_importer.cpp to import a tensorflow pb frozen model. However, I get an error during populating to the Net class variable:</p>
<p dir="auto">batch/fifo_queue:FIFOQueueV2<br>
container:[ ]<br>
component_types:[ ]<br>
shapes:[ ]<br>
capacity:[ ]<br>
shared_name:[ ]<br>
OpenCV Error: Unspecified error (Unknown layer type FIFOQueueV2 in op batch/fifo_queue) in cv::dnn::experimental_dnn_v1::`anonymous-namespace'::TFImporter::populateNet, file ......\source\modules\dnn\src\tensorflow\tf_importer.cpp, line 735</p>
<p dir="auto">Is there a way I can add this layer type into tf_importer.cpp? Or how could I remove this as this is not used in the network any longer after training.</p>
<p dir="auto">thanks</p>