title: Tensorflow-lite - Getting bitmap from quantized model output
body: <p>We are working on semantic segmentation application in android using tensorflow-lite.The '.tflite' deeplabv3 model used  has input of type  (ImageTensor) uint8[1,300,300,3] and ouput of type (SemanticPredictions) uint8[300,300].We were successfully able to run the model and get the ouptut in a ByteBuffer format with the help of tflite.run method.But we were unable to extract an image from this output in java.The model which is trained with pascal voc dataset and was actually converted to tflite format from the TF Model: '<a href="http://download.tensorflow.org/models/deeplabv3_mnv2_dm05_pascal_trainval_2018_10_01.tar.gz" rel="nofollow noreferrer">mobilenetv2_dm05_coco_voc_trainval</a>' .</p>
  
  <p>The problem seems to be similar to the following stackoverflow question : <a href="https://stackoverflow.com/questions/53141167/tensorflow-lite-using-tflite-interpreter-to-get-an-image-in-the-output/53800253#53800253">tensorflow-lite - using tflite Interpreter to get an image in the output</a></p>
  
  <p>The same issue which deals with float data-type conversion seems to be fixed in the github issue: <a href="https://github.com/tensorflow/tensorflow/issues/23483" rel="nofollow noreferrer">https://github.com/tensorflow/tensorflow/issues/23483</a></p>
  
  <p>So, how can we properly extract the segmentation mask from the UINT8 model output?</p>