davidsandberg / facenet

Face recognition using Tensorflow
MIT License
13.81k stars 4.81k forks source link

OpenCV 3.4.1 : "Unknown layer type FIFOQueueV2 in op batch_join/fifo_queue" when loading pre-trained model .pb file #699

Open a2bc opened 6 years ago

a2bc commented 6 years ago

Hello, I use OpenCV 3.4.1 to load the 20180408-102900.pb (https://drive.google.com/file/d/1R77HmFADxe87GmoLwzfgMu_HY0IhcyBz/view) by using the following code

std::string model = "20180408-102900.pb"; try { cv::dnn::Net m_network = dnn::readNetFromTensorflow(model); } catch (std::exception& ex) { std::cerr << ex.what(); }

and I get the error "Error: Unspecified error (Unknown layer type FIFOQueueV2 in op batch_join/fifo_queue) in cv::dnn::experimental_dnn_v4::`anonymous-namespace'::TFImporter::populateNet,"

When I use the python code of facenet, the loading of this .pb file is ok and I can validate on LFW correctly (https://github.com/davidsandberg/facenet/wiki/Validate-on-lfw)

I got the same issue with the pre-trained mode 20180402-114759 (https://drive.google.com/file/d/1EXPBSXwTaqrSC0OhUdXNmKSh9qJUQ55-/view): loading is ok with python code, but cannot work with OpenCV one.

Any idea?

Thank you !

ghost commented 6 years ago

Hi, I'm also getting the 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_dnntf" 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