Skip to content
Advertisement

Tensorflow 2.3.1 IndexError: list index out of range

I got an error ,IndexError: list index out of range.

it worked on a other machine but after i transferred it to a other machine it doesn’t work anymore.

Python: 3.8.5

tensorflow: 2.3.1

Traceback says:

JavaScript

My code:

JavaScript

I really cannot understand why such an error happens.

What is wrong in my codes? How should I fix this?

Advertisement

Answer

Define the detect_fn inside the get_model_detection_function function , something like this :

JavaScript

See if this helps 😊

Advertisement