deepstack-ui icon indicating copy to clipboard operation
deepstack-ui copied to clipboard

Error in face recognition mode

Open 45clouds opened this issue 5 years ago • 2 comments

When I switch to face recognition mode I get the following error:

DeepstackException: Error from Deepstack request, status code: 403
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 130, in process_image
    raise DeepstackException(


I can not teach system by uploading some faces with names. The error is displayed just below upload picture box.

45clouds avatar Feb 11 '21 07:02 45clouds

I receive the same error when selecting face: In my compose I have:

  deepstack:
    container_name: deepstack
    restart: always
    image: deepquestai/deepstack
    ports:
      - '5005:5000'
    environment:
      - VISION-DETECTION=True
    volumes:
      - /home/naeblis/deepstack:/datastore
      - /home/naeblis/deepstack/models:/modelstore/detection

  deepstack-ui:
    container_name: deepstack-ui
    restart: always
    image: robmarkcole/deepstack-ui
    ports:
      - '8501:8501'
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
      - DEEPSTACK_IP=172.17.0.1
      - DEEPSTACK_PORT=5005
      - DEEPSTACK_TIMEOUT=20
      - DEEPSTACK_UI_DEBUG_MODE=True

Na3blis avatar Jun 08 '21 01:06 Na3blis

I just realized my issue. On deepstack I had - VISION-DETECTION=True. I changed that to - VISION-FACE=True and now I don't get the 403

Na3blis avatar Jun 08 '21 14:06 Na3blis