2022-12-20T01:00:19-0500 [ERROR] [dev_api_server:kitchenware-classification] Exception on /classify [POST] (trace=bf8837bf0611a78a55a46438876d087c,span=1daf4f99f969f645,sampled=0) Traceback (most recent call last): File "/home/andre/.local/share/virtualenvs/kitchenware-competition-starter-c-6KZf-r/lib/python3.9/site-packages/bentoml/_internal/frameworks/tensorflow_v2.py", line 324, in _run_method res = raw_method(*args, **kwargs) File "/home/andre/.local/share/virtualenvs/kitchenware-competition-starter-c-6KZf-r/lib/python3.9/site-packages/tensorflow/python/util/traceback_utils.py", line 153, in error_handler raise e.with_traceback(filtered_tb) from None File "/home/andre/.local/share/virtualenvs/kitchenware-competition-starter-c-6KZf-r/lib/python3.9/site-packages/tensorflow/python/saved_model/function_deserialization.py", line 295, in restored_function_body raise ValueError( ValueError: Could not find matching concrete function to call loaded from the SavedModel. Got: Positional arguments (3 total): * * False * None Keyword arguments: {} Expected these arguments to match one of the following 4 option(s): Option 1: Positional arguments (3 total): * TensorSpec(shape=(None, 224, 224, 3), dtype=tf.float32, name='input_1') * False * None Keyword arguments: {} Option 2: Positional arguments (3 total): * TensorSpec(shape=(None, 224, 224, 3), dtype=tf.float32, name='inputs') * False * None Keyword arguments: {} Option 3: Positional arguments (3 total): * TensorSpec(shape=(None, 224, 224, 3), dtype=tf.float32, name='inputs') * True * None Keyword arguments: {} Option 4: Positional arguments (3 total): * TensorSpec(shape=(None, 224, 224, 3), dtype=tf.float32, name='input_1') * True * None Keyword arguments: {} During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/andre/.local/share/virtualenvs/kitchenware-competition-starter-c-6KZf-r/lib/python3.9/site-packages/bentoml/_internal/server/http_app.py", line 324, in api_func output = await api.func(input_data) File "/mnt/e/andre/Documents/kitchenware-competition-starter/service.py", line 46, in classify prediction = await model_runner.async_run(np.expand_dims(input_arr, 0)) File "/home/andre/.local/share/virtualenvs/kitchenware-competition-starter-c-6KZf-r/lib/python3.9/site-packages/bentoml/_internal/runner/runner.py", line 53, in async_run return await self.runner._runner_handle.async_run_method( # type: ignore File "/home/andre/.local/share/virtualenvs/kitchenware-competition-starter-c-6KZf-r/lib/python3.9/site-packages/bentoml/_internal/runner/runner_handle/local.py", line 59, in async_run_method return await anyio.to_thread.run_sync( File "/home/andre/.local/share/virtualenvs/kitchenware-competition-starter-c-6KZf-r/lib/python3.9/site-packages/anyio/to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "/home/andre/.local/share/virtualenvs/kitchenware-competition-starter-c-6KZf-r/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "/home/andre/.local/share/virtualenvs/kitchenware-competition-starter-c-6KZf-r/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 867, in run result = context.run(func, *args) File "/home/andre/.local/share/virtualenvs/kitchenware-competition-starter-c-6KZf-r/lib/python3.9/site-packages/bentoml/_internal/runner/runnable.py", line 139, in method return self.func(obj, *args, **kwargs) File "/home/andre/.local/share/virtualenvs/kitchenware-competition-starter-c-6KZf-r/lib/python3.9/site-packages/bentoml/_internal/frameworks/tensorflow_v2.py", line 356, in run_method return _run_method(runnable_self, *args, **kwargs) File "/home/andre/.local/share/virtualenvs/kitchenware-competition-starter-c-6KZf-r/lib/python3.9/site-packages/bentoml/_internal/frameworks/tensorflow_v2.py", line 334, in _run_method casted_args = cast_py_args_to_tf_function_args( File "/home/andre/.local/share/virtualenvs/kitchenware-competition-starter-c-6KZf-r/lib/python3.9/site-packages/bentoml/_internal/frameworks/utils/tensorflow.py", line 177, in cast_py_args_to_tf_function_args parameters = [ File "/home/andre/.local/share/virtualenvs/kitchenware-competition-starter-c-6KZf-r/lib/python3.9/site-packages/bentoml/_internal/frameworks/utils/tensorflow.py", line 179, in name=s.name, AttributeError: 'bool' object has no attribute 'name'