robmarkcole / deepstack-ui

UI for working with Deepstack
https://github.com/johnolafenwa/DeepStack
GNU General Public License v3.0
134 stars 42 forks source link

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

Closed avico78 closed 1 year ago

avico78 commented 1 year ago

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 commented 1 year ago

Issue found: this incorrect parameters

    - FACE-DETECTION=True