Skip to content

Conversation

@rrtaylor
Copy link

@rrtaylor rrtaylor commented Dec 6, 2019

In tflite models other than the one provided in the example (e.g. ssd_mobilenet_v1_coco), there may be less detections returned than NUM_DETECTIONS. When less detections are provided, garbage float values are passed back, causing the example to crash or return false predictions. This is prevented if you use the returned numDetections value to help control the number of detections to use.

fixes tensorflow/tensorflow#22278 and tensorflow/tensorflow#22106.

@googlebot googlebot added the cla: yes CLA has been signed label Dec 6, 2019
Copy link
Member

@jdduke jdduke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes CLA has been signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TFLite Android ArrayIndex outofBound Exception length=40, index=-7

3 participants