Skip to content

outputTensors[0].GetData() out of bounds #6

Description

@dadrocker

Hi;
Just trying your code with my own tensorflow lite classification model. But i'm getting out of bounds error in
tfService.Recognize(colors, colorCount);
for the reason of
outputTensors = new Tensor[output.Length]; is 1 but need 4 for
var detectionBoxes = (float[])outputTensors[0].GetData();
var detectionClasses = (float[])outputTensors[1].GetData();
var detectionScores = (float[])outputTensors[2].GetData();
var detectionNumDetections = (float[])outputTensors[3].GetData();

.

What could be the reason?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions