HASS-Deepstack-face
HASS-Deepstack-face copied to clipboard
CodeProject.AI works but gives an error
I switched to CodeProject,AI changing only the port number under image_processing and faces are matched and framed as before, but every one logs the following error:
Logger: homeassistant.helpers.entity
Source: custom_components/deepstack_face/image_processing.py:226
Integration: deepstack_face (documentation)
First occurred: 12:14:14 PM (50 occurrences)
Last logged: 1:16:10 PM
Update for image_processing.bedroom_faces fails
Update for image_processing.kitchen_faces failsTraceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 515, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 710, in async_device_update
raise exc
File "/usr/src/homeassistant/homeassistant/components/image_processing/__init__.py", line 139, in async_update
await self.async_process_image(image.content)
File "/usr/src/homeassistant/homeassistant/components/image_processing/__init__.py", line 119, in async_process_image
return await self.hass.async_add_executor_job(self.process_image, image)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/deepstack_face/image_processing.py", line 226, in process_image
self._predictions = self._dsface.recognize(image)
File "/usr/local/lib/python3.10/site-packages/deepstack/core.py", line 305, in recognize
return response["predictions"]
KeyError: 'predictions'