Forums - Grayscae input image support on NPE

2 posts / 0 new
Last post
Grayscae input image support on NPE
ek9852
Join Date: 4 Feb 17
Posts: 6
Posted: Mon, 2018-01-22 22:03

From snpe-caffe-to-dlc, the only input supported format is argb32,rgba,nv21,bgr.
We have a deep learning network trained by caffe which takes grayscale input (1dim input source).
How can I convert to the model using snpe-caffe-to-dlc. Is this unsupported. Only color rgb iamge supported ?
 

 

  • Up0
  • Down0
scott.creager
Join Date: 6 Sep 17
Posts: 7
Posted: Mon, 2018-02-12 06:17

Have you looked through the sample Android application? There is a function in there called writeGrayScaleBitmapAsFloat(). You might want to look through that to get some hints.

  • Up0
  • Down0
or Register

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.