diff --git a/edge_impulse_linux/runner.py b/edge_impulse_linux/runner.py index d5bea3a..ef79363 100755 --- a/edge_impulse_linux/runner.py +++ b/edge_impulse_linux/runner.py @@ -24,7 +24,7 @@ def __init__(self, model_path: str, timeout: int = 30, allow_shm = True): self._allow_shm = allow_shm self._input_shm = None self._freeform_output_shm = [] - self._timeout = timeout + self._timeout = timeout if not allow_shm else None def init(self, debug=False): if not os.path.exists(self._model_path):