Issue with Detecting People with MLX90640 Code #10

Closed
opened 2022-07-05 01:38:38 +02:00 by blacklight · 0 comments
Owner

When following the guide on the blog to detect people with MLX90640, once I have the model built and on the Pi and go to test it with the tensorflow.predict method, i get the error "IndexError: tuple index out of range".

Error Message:

2022-03-04 13:24:07,298|WARNING|platypush.message.request|Uncaught exception while processing response from action [tensorflow.predict]: tuple index out of range
2022-03-04 13:24:07,299| INFO|platypush.message.request|Reloading plugin tensorflow and retrying
2022-03-04 13:24:12,144|ERROR|TensorflowPlugin|tuple index out of range
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/platypush/message/request/__init__.py", line 216, in _thread_func
    response = plugin.run(method=method_name, **args)
  File "/usr/local/lib/python3.9/dist-packages/platypush/plugins/__init__.py", line 54, in run
    return getattr(self, method)(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/platypush/plugins/__init__.py", line 14, in _execute_action
    result = f(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/platypush/plugins/tensorflow/__init__.py", line 1088, in predict
    ret = model.predict(
  File "/home/pi/.local/lib/python3.9/site-packages/keras/utils/traceback_utils.py", line 67, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "/usr/local/lib/python3.9/dist-packages/tensorflow/python/framework/tensor_shape.py", line 908, in __getitem__
    return self._dims[key]
IndexError: tuple index out of range
2022-03-04 13:24:12,153|WARNING|platypush.message.request|Uncaught exception while processing response from action [tensorflow.predict]: tuple index out of range

{"id": "466df7ef7907775448cbc5b13cb7e461", "type": "response", "target": "http", "origin": "raspberrypi", "_timestamp": 1646400252.153998, "response": {"output": {"success": false}, "errors": ["tuple index out of range"]}}
When following the guide on the blog to detect people with MLX90640, once I have the model built and on the Pi and go to test it with the tensorflow.predict method, i get the error "IndexError: tuple index out of range". Error Message: ``` 2022-03-04 13:24:07,298|WARNING|platypush.message.request|Uncaught exception while processing response from action [tensorflow.predict]: tuple index out of range 2022-03-04 13:24:07,299| INFO|platypush.message.request|Reloading plugin tensorflow and retrying 2022-03-04 13:24:12,144|ERROR|TensorflowPlugin|tuple index out of range Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/platypush/message/request/__init__.py", line 216, in _thread_func response = plugin.run(method=method_name, **args) File "/usr/local/lib/python3.9/dist-packages/platypush/plugins/__init__.py", line 54, in run return getattr(self, method)(*args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/platypush/plugins/__init__.py", line 14, in _execute_action result = f(*args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/platypush/plugins/tensorflow/__init__.py", line 1088, in predict ret = model.predict( File "/home/pi/.local/lib/python3.9/site-packages/keras/utils/traceback_utils.py", line 67, in error_handler raise e.with_traceback(filtered_tb) from None File "/usr/local/lib/python3.9/dist-packages/tensorflow/python/framework/tensor_shape.py", line 908, in __getitem__ return self._dims[key] IndexError: tuple index out of range 2022-03-04 13:24:12,153|WARNING|platypush.message.request|Uncaught exception while processing response from action [tensorflow.predict]: tuple index out of range {"id": "466df7ef7907775448cbc5b13cb7e461", "type": "response", "target": "http", "origin": "raspberrypi", "_timestamp": 1646400252.153998, "response": {"output": {"success": false}, "errors": ["tuple index out of range"]}} ```
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: platypush/platypush#10
No description provided.