jiangxiluning / facenet_mtcnn_to_mobile

convert facenet and mtcnn models from tensorflow to tensorflow lite and coreml (使用 TFLite 将 FaceNet 和 MTCNN 移植到移动端)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MTCNN 转tflite时不成功

wweihang opened this issue · comments

RuntimeError: TOCO failed see console for info.
2019-12-18 16:48:58.198777: I tensorflow/contrib/lite/toco/import_tensorflow.cc:1366] Converting unsupported operation: Abs
2019-12-18 16:48:58.198857: I tensorflow/contrib/lite/toco/import_tensorflow.cc:1366] Converting unsupported operation: Abs
2019-12-18 16:48:58.198952: I tensorflow/contrib/lite/toco/import_tensorflow.cc:1366] Converting unsupported operation: Abs
2019-12-18 16:48:58.199031: I tensorflow/contrib/lite/toco/import_tensorflow.cc:1366] Converting unsupported operation: Abs
2019-12-18 16:48:58.199599: I tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.cc:39] Before Removing unused ops: 75 operators, 105 arrays (0 quantized)

提示没有abs这个op,这是安装版本问题吗?

Same error here. Anyone got the solution? Thanks!

Hi @wweihang ,
I try to modify the abs() in mtcnn_model.py prelu() function with
output = tf.nn.relu(inputs) + tf.multiply(alphas, -tf.nn.relu(-inputs))
and I am ok to convert to tflite.
for your reference.