Hi, I have a model trained using TF 1.12 for object detection. I use tf.image.non_maximum_suppression () for NMS operation. When I am attempting to convert this model into a DLC, the SNPE converter gives me the below warning and error message:
- 174 - WARNING - WARNING_TF_OP_NOT_SUPPORTED: Operation (Post_Processing/NMS/non_max_suppression/NonMaxSuppressionV3) of type (NonMaxSuppressionV3) is not supported by converter.
- 164 - ERROR - Conversion failed: ERROR_TF_OPERATION_NOT_MAPPED_TO_LAYER: Some operations in the Tensorflow graph were not resolved to a laye
But when I try to run the example model - MobilenetSSD (which also contains the NonMaxSuppressionV3 operation) given in the SNPE documentation, I was able to perform inference using the DLC generated. So, I want to know if I can use NMS operation of TF in my object detection model which will be supported by SNPE?
Note: SNPE v1.37 was used for above mentioned experiments.
I kindly request the SNPE developers and my fellow developers to respond to my query.
Hi Shubham,
TF NonMaxSuppression V3 Operation is not currently supported by NPE.
You can find the supported layers info from the following link,
https://developer.qualcomm.com/docs/snpe/network_layers.html
Hi,
Thanks for the response. I read the link shared but I am unable to understand that if TF's NonMaxSuppression V3 is not supported then how the example model of MobilenetSSD (which also uses NonMaxSuppression V3) is running fine.
Please share your thoughts on this.
Hi,
I have been debugging the SNPE code and it seems they have several hacks in the convertion tool to support the some examples (I think they do these things to try to hide the limitions of the SDK and transmit a better "first impression").
You can go to:
- lib/python/snpe/converters/tensorflow/layers/non_max_suppression.py
- lib/python/snpe/converters/tensorflow/layers/ssd.py
- lib/python/snpe/converters/tensorflow/sequence/ssd.py
to see how they handle the NonMaxSuppression layer for mobilenetSSD
Hi,
Thanks for your response. I will look into the files you mention. Additionally, if you are able to use TF's NMS operation and generate DLC, kindly help me with the same.