When I queue up too many images, I hit an error about the queue being full
---------------------------------------------------------------------------
HailoRTStatusException Traceback (most recent call last)
File /usr/lib/python3/dist-packages/hailo_platform/pyhailort/pyhailort.py:3282, in ConfiguredInferModel.run_async(self, bindings, callback)
3281 with ExceptionWrapper():
-> 3282 cpp_job = self._configured_infer_model.run_async(
3283 [b.get() for b in bindings], callback_wrapper
3284 )
3286 job = AsyncInferJob(cpp_job)
HailoRTStatusException: 82
The above exception was the direct cause of the following exception:
HailoRTException Traceback (most recent call last)
Cell In[25], line 110
107 clip_enqueue_thread.start()
108 clip_process_thread.start()
--> 110 hailo_clip_inference.run(input_queue=clip_input_queue, output_queue=clip_output_queue)
112 clip_enqueue_thread.join()
113 clip_output_queue.put(None) # Signal process thread to exit
File ~/Desktop/hailo-CLIP/hailo_utils.py:144, in HailoAsyncInference.run(self, input_queue, output_queue)
141 bindings_list.append(bindings)
143 configured_infer_model.wait_for_async_ready(timeout_ms=10000)
--> 144 job = configured_infer_model.run_async(
145 bindings_list, partial(
146 self.callback,
147 output_queue=output_queue,
148 batch_data=batch_data,
149 original_images=original_images,
150 metadata=metadata,
151 bindings_list=bindings_list
152 )
153 )
154 job.wait(10000)
File /usr/lib/python3/dist-packages/hailo_platform/pyhailort/pyhailort.py:3281, in ConfiguredInferModel.run_async(self, bindings, callback)
3278 # remove the buffers - they are no longer needed
3279 self._buffer_guards.popleft()
-> 3281 with ExceptionWrapper():
3282 cpp_job = self._configured_infer_model.run_async(
3283 [b.get() for b in bindings], callback_wrapper
3284 )
3286 job = AsyncInferJob(cpp_job)
File /usr/lib/python3/dist-packages/hailo_platform/pyhailort/pyhailort.py:110, in ExceptionWrapper.__exit__(self, exception_type, value, traceback)
108 if value is not None:
109 if exception_type is _pyhailort.HailoRTStatusException:
--> 110 self._raise_indicative_status_exception(value)
111 else:
112 raise
File /usr/lib/python3/dist-packages/hailo_platform/pyhailort/pyhailort.py:155, in ExceptionWrapper._raise_indicative_status_exception(self, libhailort_exception)
153 def _raise_indicative_status_exception(self, libhailort_exception):
154 error_code = int(libhailort_exception.args[0])
--> 155 raise self.create_exception_from_status(error_code) from libhailort_exception
HailoRTException: libhailort failed with error: 82 (HAILO_QUEUE_IS_FULL)
Is there a way to set the queue size to be larger?