Forums - how to deal with BatchMultiClassNonMaxSuppression_boxes.raw, BatchMultiClassNonMaxSuppression_classes.raw and BatchMultiClassNo

3 posts / 0 new
Last post
how to deal with BatchMultiClassNonMaxSuppression_boxes.raw, BatchMultiClassNonMaxSuppression_classes.raw and BatchMultiClassNo
guoguoxin2004
Join Date: 24 May 18
Posts: 4
Posted: Mon, 2018-07-09 23:40

hi everynone:

I have Converted a sample MoibleNetSSD mode to a dlc file following the tutorial at https://developer.qualcomm.com/docs/snpe/convert_mobilenetssd.html. Three output nodes (detection_classes, detection_boxes, and detection_scores) are created in Postprocessor  folder: atchMultiClassNonMaxSuppression_boxes.raw, BatchMultiClassNonMaxSuppression_classes.raw and BatchMultiClassNonMaxSuppression_scores.raw 

but how to deal with those files and extract   classes names, bbox  information.

thanks 

 

  • Up0
  • Down0
jihoonk
Profile picture
Join Date: 28 Jan 13
Location: Seoul
Posts: 55
Posted: Tue, 2018-07-10 00:18

Hi guoguoxin2004,

 

The raw files contains output layer result as binary format.

You can extract values from them like following python code:

 
import numpy as np

# You need to reshape the numpy array as proper dimension
result = np.fromfile('BatchMultiClassNonMaxSuppression_scores.raw', dtype=np.float32).reshape((DIM1,DIM2,DIM3))


 

  • Up0
  • Down0
guoguoxin2004
Join Date: 24 May 18
Posts: 4
Posted: Tue, 2018-07-10 00:31

I got it , thanks 

  • 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.