tensorflow / tensorflow/models

IndexError: invalid index to scalar variable.

Open
#9,694 23 comments 0 reactions 4 assignees View on GitHub

@srjoglekar246 is already working on this.

Since Feb 3, 2021.

models:research:odapi type:support
Dominant language
Python
Stars
77.7k
Forks
44.8k
PR merge metrics
No merged PRs in 30d

Description

Hi,
I used the eager_few_shot_od_training_tflite.ipynb to train a model then generate a (downloadable) TensorFlow Lite model for on-device inference using the same predefined dataset files(ducky) as described in the notebook. I am able to generated model.tflite file but during testing its giving me error IndexError: invalid index to scalar variable.

image
I tried to print the values return by the detect function but its all 0.0
Please suggest me what should I do ..

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.