Hello,
Since SNPE supports Caffe2 also, how to convert caffe2 .pb models to .dlc snpe models and while building an app how to use caffe2 environment?
Your help would be appreciated.
Best regards,
Pratik
Hello,
Since SNPE supports Caffe2 also, how to convert caffe2 .pb models to .dlc snpe models and while building an app how to use caffe2 environment?
Your help would be appreciated.
Best regards,
Pratik
Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.
I think they have provided instructions on caffe2 to dlc conversion in the sdk documentation.
<sdk>/doc/html/model_conv_caffe.html
I am no expert but I think once you have dlc model, you should be able to follow android tutorial in sdk, <sdk>/doc/html/android_tutorial.html assuming you are interested in android app.
Thank you mit2nil. Correct. The SDK documentation explains the process of converting caffe2 to dlc. Need to use snpe-caffe2-to-dlc tool which is provided in SDK.
Before model conversion, you must have to setup caffe2 on your system. Once you have setup the caffe2 on the system, intialize the enviromental variable for caffe2 using below command:
where $CAFFE2_DIR is the path to the Caffe2 installation.
once you initialized with caffe2 enviromental variable use the below command to convert your caffe2 model into dlc file.