-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tensor must have a shape comprised of positive integers but got shape [1917,] #29
Comments
This normally means you didn’t have enough training data |
I used 200 images to annotate on cloud.annotations.ai. |
200 hundred images might be enough, but it more depends on how many labels and how many objects per label |
1 label for all |
Try adding a second label |
Did it help to add more images or an additional lable? Because i have the same error :D |
I'm having the same error. Did adding more images help? I have 3 labels and 200 images for each of them |
Does anybody have a working model_web so I can make some tests? |
I followed cloud.annotations.ai to train a custom model for tensorflow.js.
After cloning this project and copy the model_web to the public folder, I
run npm install
thennpm run start.
The local page is showed with an error when detectFromVideoFrame:
Error: Tensor must have a shape comprised of positive integers but got shape [1917,]. at g (index.esm.js:17) at index.esm.js:17 at Array.forEach (<anonymous>) at Q (index.esm.js:17) at kn (index.esm.js:17) at Object.Dn [as tensor2d] (index.esm.js:17) at index.esm.js:500 at index.esm.js:17 at t.scopedRun (index.esm.js:17) at t.tidy (index.esm.js:17) at Object.Ke [as tidy] (index.esm.js:17) at runObjectDetectionPrediction (index.esm.js:499) at async Object.detect (index.esm.js:556)
After digging a bit into the source code, I found this strange:
As you see, the scores and boxes have been swapped together. Is it intended?
The text was updated successfully, but these errors were encountered: