Setting up DeepStack on HomeAssistant

I had DeepStack running perfectly on my unraid box for a few months and then I needed to uninstall due to capacity issue on my cache. Since reinstalling I have never been able to get DeepStack running again.

I deleted the docker image and ran restarted everything fresh again.

While following the instructions I get to the command: curl -X POST -F image=@development/test-image3.jpg 'http://localhost:5000/v1/vision/detection'

And get the response: curl: (26) couldn't open file "development/test-image3.jpg"

Does anyone know how to resolve it? Other human detection apps are happily seeing local imagines and camera feeds on Home Assistant so I’m not sure why I am getting caught up.

Any assistance is much appreciated.

Hello @calypso , this seems to be an issue with home assistant on your system.
@robmarkcole any ideas why this happens?

Hi
I have chatted to @robmarkcole, no luck unfortunately. Ill try load the docker container on a seperate VM and see if the issue continues.

I don’t know if this will help anybody but it’s a short little video I made

Thank you for you vidéo but il havé this error on home assistant
HTTPConnectionPool(host=‘127.0.0.1’, port=80): Max retries exceeded with url: /v1/vision/detection (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x6916ba10>: Failed to establish a new connection: [Errno 111] Connection refused’))
When i tried ip_adress: localhost
Résult is thé same . Deepstack runs very well on docker and when i use python command request result is ok
Have you an idea ?
Regards
Giloris

I have the same issue.
have you figured this out yet?

DeepstackException: Deepstack connection error, check your IP and port: HTTPConnectionPool(host=‘localhost’, port=777): Max retries exceeded with url: /v1/vision/face/recognize (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f3dd3483520>: Failed to establish a new connection: [Errno 111] Connection refused’))

Traceback:

File "/usr/local/lib/python3.8/site-packages/streamlit/script_runner.py", line 332, in _run_script
    exec(code, module.__dict__)File "/app/deepstack-ui.py", line 90, in <module>
    predictions = process_image_face(pil_image, dsface)File "/usr/local/lib/python3.8/site-packages/streamlit/caching.py", line 604, in wrapped_func
    return get_or_create_cached_value()File "/usr/local/lib/python3.8/site-packages/streamlit/caching.py", line 588, in get_or_create_cached_value
    return_value = func(*args, **kwargs)File "/app/deepstack-ui.py", line 57, in process_image_face
    predictions = dsface.recognize(image_bytes)File "/usr/local/lib/python3.8/site-packages/deepstack/core.py", line 297, in recognize
    response = process_image(File "/usr/local/lib/python3.8/site-packages/deepstack/core.py", line 124, in process_image
    response = post_image(url=url, image_bytes=image_bytes, timeout=timeout, data=data)File "/usr/local/lib/python3.8/site-packages/deepstack/core.py", line 108, in post_image
    raise DeepstackException(

It might be the ’localhost’ issue. Try specifying an ip address deepstack is accessible at.

1 Like

Very strange. That fixed it. thank you

That’s because docker containers have distinct ip addresses. Glad it helped.

1 Like