With the examples in SNPE SDK 1.8.0, I have tested SNPE Inception v3 successfully.
I use tensorflow version r1.4 retrain get the pb file to convert SNPE dlc file
But I failed when I tried to convert mobilenet Models.
Follow the instructions of SNPE document, I tried to convert the model with the command:
snpe-tensorflow-to-dlc --graph optimized_mobilenet_graph.pb --input_dim input 128,128,3 --out_node final_result --dlc dlc/inception_v3.dlc --allow_unconsumed_nodes
And I got the failed log:
2017-12-14 09:55:44,391 - 123 - ERROR - Conversion failed: ERROR_TF_CONV_RESOLVE_WEIGHTS: Cannot resolve convolution layer due to missing weights for operation: MobilenetV1/MobilenetV1/Conv2d_13_pointwise/BatchNorm/batchnorm/mul_1
Add --verbose get more log
2017-12-14 10:23:39,974 - 103 - DEBUG - DEBUG_TF_SCOPE_PRINT: Scope(MobilenetV1/Predictions/Reshape)
2017-12-14 10:23:39,974 - 105 - DEBUG - DEBUG_TF_OP_NAME_TYPE_PRINT: Operation(MobilenetV1/Predictions/Reshape/shape) [Const])
2017-12-14 10:23:39,974 - 103 - DEBUG - DEBUG_TF_SCOPE_PRINT: Scope(MobilenetV1/Conv2d_0/weights/read)
2017-12-14 10:23:39,974 - 105 - DEBUG - DEBUG_TF_OP_NAME_TYPE_PRINT: Operation(MobilenetV1/Conv2d_0/weights/read/_82__cf__82) [Const])
2017-12-14 10:23:39,974 - 103 - DEBUG - DEBUG_TF_SCOPE_PRINT: Scope(input)
2017-12-14 10:23:39,974 - 105 - DEBUG - DEBUG_TF_OP_NAME_TYPE_PRINT: Operation(input) [Placeholder])
2017-12-14 10:23:39,974 - 103 - DEBUG - DEBUG_TF_SCOPE_PRINT: Scope(MobilenetV1/MobilenetV1/Conv2d_0/BatchNorm/batchnorm)
2017-12-14 10:23:39,974 - 105 - DEBUG - DEBUG_TF_OP_NAME_TYPE_PRINT: Operation(MobilenetV1/MobilenetV1/Conv2d_0/BatchNorm/batchnorm/mul_1) [Conv2D])
2017-12-14 10:23:39,974 - 105 - DEBUG - DEBUG_TF_OP_NAME_TYPE_PRINT: Operation(MobilenetV1/MobilenetV1/Conv2d_0/BatchNorm/batchnorm/add_1) [Add])
2017-12-14 10:23:39,974 - 103 - DEBUG - DEBUG_TF_SCOPE_PRINT: Scope(MobilenetV1/MobilenetV1/Conv2d_0)
2017-12-14 10:23:39,974 - 105 - DEBUG - DEBUG_TF_OP_NAME_TYPE_PRINT: Operation(MobilenetV1/MobilenetV1/Conv2d_0/Relu6) [Relu6])
2017-12-14 10:23:39,975 - 103 - DEBUG - DEBUG_TF_SCOPE_PRINT: Scope(MobilenetV1/MobilenetV1/Conv2d_1_depthwise)
2017-12-14 10:23:39,975 - 105 - DEBUG - DEBUG_TF_OP_NAME_TYPE_PRINT: Operation(MobilenetV1/MobilenetV1/Conv2d_1_depthwise/depthwise) [DepthwiseConv2dNative])
2017-12-14 10:23:39,975 - 105 - DEBUG - DEBUG_TF_OP_NAME_TYPE_PRINT: Operation(MobilenetV1/MobilenetV1/Conv2d_1_depthwise/Relu6) [Relu6])
2017-12-14 10:23:39,975 - 103 - DEBUG - DEBUG_TF_SCOPE_PRINT: Scope(MobilenetV1/MobilenetV1/Conv2d_1_depthwise/BatchNorm/batchnorm)
2017-12-14 10:23:39,975 - 105 - DEBUG - DEBUG_TF_OP_NAME_TYPE_PRINT: Operation(MobilenetV1/MobilenetV1/Conv2d_1_depthwise/BatchNorm/batchnorm/mul_1) [Mul])
2017-12-14 10:23:39,975 - 105 - DEBUG - DEBUG_TF_OP_NAME_TYPE_PRINT: Operation(MobilenetV1/MobilenetV1/Conv2d_1_depthwise/BatchNorm/batchnorm/add_1) [Add])
2017-12-14 10:23:39,975 - 103 - DEBUG - DEBUG_TF_SCOPE_PRINT: Scope(MobilenetV1/Conv2d_1_pointwise/weights/read)
2017-12-14 10:23:39,975 - 105 - DEBUG - DEBUG_TF_OP_NAME_TYPE_PRINT: Operation(MobilenetV1/Conv2d_1_pointwise/weights/read/_76__cf__76) [Const])
2017-12-14 10:23:39,975 - 103 - DEBUG - DEBUG_TF_SCOPE_PRINT: Scope(MobilenetV1/MobilenetV1/Conv2d_1_pointwise/BatchNorm/batchnorm)
2017-12-14 10:23:39,978 - 105 - DEBUG - DEBUG_TF_OP_NAME_TYPE_PRINT: Operation(MobilenetV1/MobilenetV1/Conv2d_1_pointwise/BatchNorm/batchnorm/mul_1) [Conv2D])
2017-12-14 10:23:39,978 - 105 - DEBUG - DEBUG_TF_OP_NAME_TYPE_PRINT: Operation(MobilenetV1/MobilenetV1/Conv2d_1_pointwise/BatchNorm/batchnorm/add_1) [Add])
2017-12-14 10:23:39,978 - 103 - DEBUG - DEBUG_TF_SCOPE_PRINT: Scope(MobilenetV1/MobilenetV1/Conv2d_1_pointwise)
....
Question:
1. Could the problem be that SNPE 1.8.0 does not support mobilenet convolutions?
2. If SNPE 1.8.0 support mobilenet convolution how to convert?
hi!, did you solved the problem? I got the same error when converting mobileNetSSD model
to dlc, my snpe version 1.13.0