Hello
Quick question
1. Do you have any tensorflow (inception v3) example not caffe one?
2. Tensorflow uses CPU only ? or can we use GPU or DSP can used for the inference?
Hello
Quick question
1. Do you have any tensorflow (inception v3) example not caffe one?
2. Tensorflow uses CPU only ? or can we use GPU or DSP can used for the inference?
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.
1. Yes, please refer to:
├── alexnet
Both questions are answered in our full SDK documentation, which can be found in the "doc/html" folder of the SDK. If the documentation does not fully address your question, please ask a new question.
Q1: There is tutorial on how to run Tensorflow Inception v3 model. Please refer to Example Tutorials in SDK documentation: .../doc/html/tutorial_inceptionv3.html
Q2. As haijunz0 posted, you need to convert Tensorflow model to DLC format which Snapdragon NPE can load. You can load and run converted model on CPU, GPU, or DSP. You select which target through Snapdragon NPE API.
Hi moljaca,
Example shows how to use setup_models.sh to prepare caffe's model and data for APP.
Will qualcomm provide another APP and setup_models.sh for Tensorflow's model and data?
or any doc is recommanded to read about changing caffe's exmaple to tensorflow?
Thank you,
Colin
Hi, moljaca
~/snpe-sdk/examples/android/image-classifiers/setup_models.sh shows how to pack an alexnet dlc to a zip file.
Is mean_image.bin necessary for inception_v3?
And I've modified the script setup_models.sh for inception_v3, is it OK?
mkdir -p inception_v3
mkdir -p inception_v3/images
cd inception_v3
cp -R ../../../../models/inception_v3/data/cropped/*.jpg images
cp -R ../../../../models/inception_v3/dlc/inception_v3.dlc model.dlc
cp -R ../../../../models/inception_v3/data/imagenet_comp_graph_label_strings.txt labels.txt
#cp -R ../../../../models/inception_v3/data/ilsvrc_2012_mean_cropped.bin mean_image.bin
zip -r inception_v3.zip ./*
mkdir ../app/src/main/res/raw/
cp inception_v3.zip ../app/src/main/res/raw/
cd ..
rm -rf ./inception_v3
Thanks and waiting for your kind reply.
A mean image is not required for inception V3.
See: https://developer.qualcomm.com/forum/qdn-forums/software/snapdragon-neur...