Hello,
I’m really interested in using Edge Impulse!
I want to use the ‘Object Detection (Images)’ block.
I create the Impulse design like
Image data (320 * 320, Squash) - Image (RGB) - Object Detection (Images) - Output features
But, I’ve got the error code.
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 247, in __call__
return func(device, token, args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 135, in __call__
ret = self._func(*args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/autograph/impl/api.py", line 620, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/data/ops/dataset_ops.py", line 960, in generator_py_func
values = next(generator_state.get_iterator(iterator_id.numpy()))
File "./resources/libraries/ei_tensorflow/training.py", line 91, in gen
raw_boxes = Y_values[ix]['boundingBoxes']
IndexError: invalid index to scalar variable.
[[{{node EagerPyFunc}}]] [Op:IteratorGetNext]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/train.py", line 240, in <module>
main_function()
File "/home/train.py", line 111, in main_function
X_train, X_test, Y_train, Y_test, len(X_train), classes, classes_values)
File "/home/train.py", line 49, in train_model
train_dataset, validation_dataset)
File "./resources/libraries/ei_tensorflow/object_detection.py", line 101, in train
for batch in train_dataset:
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/data/ops/iterator_ops.py", line 747, in __next__
return self._next_internal()
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/data/ops/iterator_ops.py", line 739, in _next_internal
return structure.from_compatible_tensor_list(self._element_spec, ret)
File "/usr/lib/python3.6/contextlib.py", line 99, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/context.py", line 2116, in execution_mode
executor_new.wait()
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/executor.py", line 69, in wait
pywrap_tfe.TFE_ExecutorWaitForAllPendingNodes(self._handle)
tensorflow.python.framework.errors_impl.UnknownError: IndexError: invalid index to scalar variable.
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 247, in __call__
return func(device, token, args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 135, in __call__
ret = self._func(*args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/autograph/impl/api.py", line 620, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/data/ops/dataset_ops.py", line 960, in generator_py_func
values = next(generator_state.get_iterator(iterator_id.numpy()))
File "./resources/libraries/ei_tensorflow/training.py", line 91, in gen
raw_boxes = Y_values[ix]['boundingBoxes']
IndexError: invalid index to scalar variable.
[[{{node EagerPyFunc}}]]
Application exited with code 1 (Error)`
I wonder to fix this error.
And hopefully may I get the .pdf file or some manual about the Impulse Block?