Skip to content
This repository has been archived by the owner on Mar 19, 2023. It is now read-only.

Error in face recognition mode #51

Open
45clouds opened this issue Feb 11, 2021 · 2 comments
Open

Error in face recognition mode #51

45clouds opened this issue Feb 11, 2021 · 2 comments

Comments

@45clouds
Copy link

45clouds commented Feb 11, 2021

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.

@Na3blis
Copy link

Na3blis commented Jun 8, 2021

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
Copy link

Na3blis commented Jun 8, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants