question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

0.8 beta 2: custom model crashes: IndexError: index 20 is out of bounds for axis 0 with size 20,

See original GitHub issue

Describe the bug Using a model I previously trained (and that worked in doods): File “sqwrlmodel2.tflite” from https://github.com/rb2k/sqwrlmodel

Dimensions are 320x320 according to https://github.com/rb2k/sqwrlmodel/blob/main/sqwrlmodel2_metadata.json

Dictionary is:

0 person
1 cat
2 bird
3 squirrel
4 dog

Version of frigate 0.8b2

Config file Include your full config file wrapped in triple back ticks.

model:
  # Required: height of the trained model
  height: 320
  # Required: width of the trained model
  width: 320

Logs

Process detector:coral:,
Traceback (most recent call last):,
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap,
    self.run(),
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run,
    self._target(*self._args, **self._kwargs),
  File "/opt/frigate/frigate/edgetpu.py", line 149, in run_detector,
    detections = object_detector.detect_raw(input_frame),
  File "/opt/frigate/frigate/edgetpu.py", line 105, in detect_raw,
    detections[i] = [label_codes[i], score, boxes[i][0], boxes[i][1], boxes[i][2], boxes[i][3]],
IndexError: index 20 is out of bounds for axis 0 with size 20,

Computer Hardware

  • OS: OpenSuse
  • Virtualization: Docker
  • Coral Version: USB
  • Network Setup: Wired

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
blakeblackshearcommented, Dec 20, 2020

Looks like your output shape is different.

0reactions
stale[bot]commented, Feb 22, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I getting IndexError: index 20 is out of bounds for axis ...
When I use move function it means they are doing their normal activity and is moving randomly around the building. They can move...
Read more >
Medaka variant error: "IndexError: index 0 is out of bounds for ...
medaka variant crashes with exit status 20 when the command medaka variant ... IndexError: index 0 is out of bounds for axis 0...
Read more >
0.8 beta 2: custom model crashes: IndexError: index 20 is out of ...
0.8 beta 2 : custom model crashes: IndexError: index 20 is out of bounds for axis 0 with size 20, ; Describe the...
Read more >
Error in python (jupyter): index 1 is out of bounds for axis 0 ...
The error message is quite explanatory. Notice that x=np.linspace(0,100,1). is [0.] Probably you wanted to write: x=np.linspace(0,1,100) .
Read more >
NumPy User Guide
NumPy arrays have a fixed size at creation, unlike Python lists (which can ... IndexError: index 3 is out of bounds for axis...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found