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

when choosing "face" in UI - getting error code 403 #75

Closed
avico78 opened this issue Nov 20, 2022 · 1 comment
Closed

when choosing "face" in UI - getting error code 403 #75

avico78 opened this issue Nov 20, 2022 · 1 comment

Comments

@avico78
Copy link

avico78 commented Nov 20, 2022

from ui:
While select Deepstack mode:Object -> everything working
when choosing "face" getting
Select Deepstack mode: "DeepstackException: Error from Deepstack request, status code: 403"

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(

docker-compose running on windows 10 :
Please note when ever adding
DEEPSTACK_CUSTOM_MODEL='mask'
also when choosing DS "object " lead to same error:

version: '3.7'

services:

  deepstack:
    container_name: deepstack
    restart: unless-stopped
    image: deepquestai/deepstack:latest  
    ports:
      - '5000:5000'
    environment:
      - VISION-DETECTION=True
      - FACE-DETECTION=True
    volumes:
      - ./deepstack:/modelstore/detection

  deepstack_ui:
    container_name: deepstack_ui
    restart: unless-stopped
    image: robmarkcole/deepstack-ui:latest 
    environment: 
      - DEEPSTACK_IP=deepstack
      - DEEPSTACK_PORT=5000
      - DEEPSTACK_TIMEOUT=2000
      - DEEPSTACK_UI_DEBUG_MODE=True
    ports:
      - '8501:8501'

volumes:
  deepstack:
    external: true

@avico78
Copy link
Author

avico78 commented Nov 20, 2022

Issue found:
this incorrect parameters

    - FACE-DETECTION=True

@avico78 avico78 closed this as completed Nov 20, 2022
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

1 participant