t0mer / deepstack-trainer

deepstack trainer is a Flask powerd, easy to use web app, hepls us to train and test Deepstack AI
GNU General Public License v3.0
24 stars 3 forks source link

deepstack-trainer not working #11

Closed xcellenceit closed 2 years ago

xcellenceit commented 2 years ago

I am setting up a deepstack-trainer using docker-compose but it doesn't seem to work.. not sure what's wrong.

Note that I am using docker on win 10 machine.

Here is my docker-compose

version: "3.9"
services:
  deepstack:
    container_name: deepstack
    restart: unless-stopped
    image: deepquestai/deepstack
    ports:
      - '80:5000'
    environment:
      - VISION-FACE=True
      - VISION-DETECTION=True
      - VISION-SCENE=True
      - API-KEY="deepstack"
    volumes:
      - ./localstorage:/datastore
    networks:
      - deepstacknet
  deepstack_ui:
    container_name: deepstack_ui
    restart: unless-stopped
    image: robmarkcole/deepstack-ui:latest
    environment: 
      - DEEPSTACK_IP=192.168.29.100
      - DEEPSTACK_PORT=80
      - DEEPSTACK_API_KEY="deepstack"
      - DEEPSTACK_TIMEOUT=20
      - DEEPSTACK_UI_DEBUG_MODE=True
    ports:
      - '8501:8501'
    networks:
      - deepstacknet
  deepstack_trainer:
    image: techblog/deepstack-trainer
    container_name: deepstack_trainer
    privileged: true
    restart: always
    environment:
      - DEEPSTACK_HOST_ADDRESS=http://192.168.29.100:80
      - DEEPSTACK_API_KEY="deepstack"
      - MIN_CONFIDANCE=60
    ports:
      - "8080:8080" 
    volumes:
      - ./deepstack-trainer/db:/opt/trainer/db #Database storing the uploaded photos data (Filename, Person name, Date).
      - ./deepstack-trainer/uploads:/opt/trainer/photos/uploads #Phisical path for storing the images
networks:
  deepstacknet:
    driver: bridge

Here is the error I am getting.. image

image

image

Pls guide, what could be wrong?

t0mer commented 2 years ago

Hi @xcellenceit, Thanks for pointing it out, I'll check it up.

t0mer commented 2 years ago

Fixed. Please pull the latest version and give it a try.

xcellenceit commented 2 years ago

I tried again after pulling the latest image 1.1.0, here is what I get.

image image image image

Can you please review and let me know if this part of docker-config is okay?

  deepstack_trainer:
    image: techblog/deepstack-trainer:1.1.0
    container_name: deepstack_trainer
    privileged: true
    restart: always
    environment:
      - DEEPSTACK_HOST_ADDRESS=http://192.168.29.100:80
      - DEEPSTACK_API_KEY="deepstack"
      - MIN_CONFIDANCE=60
    ports:
      - "8080:8080" 
    volumes:
      - ./deepstack-trainer/db:/opt/trainer/db #Database storing the uploaded photos data (Filename, Person name, Date).
      - ./deepstack-trainer/uploads:/opt/trainer/photos/uploads #Phisical path for storing the images
t0mer commented 2 years ago

Hi @xcellenceit, I had an issue with the latest commit, sorry for that. Please pull version 2.0.0, this should fix the errors.

xcellenceit commented 2 years ago

Hi, I get the same error with latest version. Seems like tag 2.0.0 is not pushed. Moreover, I am really grateful for you taking interest in helping me. Thank you:)

t0mer commented 2 years ago

Hi, I don't know why but something went wrong with the git action. The image was created but with the wrong tag. You should now see tag 2.1.0 that contains my fix.

xcellenceit commented 2 years ago

just trying that...

seems its working now... image image image

But not everything seems to be working image image

xcellenceit commented 2 years ago

hi, did u get a chance to look at this?

xcellenceit commented 2 years ago

any chance to get it working?

t0mer commented 2 years ago

Hi, Hope to get to it sometime this week.

xcellenceit commented 2 years ago

thanks buddy, waiting for it.

t0mer commented 2 years ago

Hi, I released version 2.2.0 with some bugs fixes. I also extended the error messages and added more details to them.

Cheers!

xcellenceit commented 2 years ago

Hi, Seems it is working now. I haven't tested all the features yet.. although it requires me to change MIN_CONFIDANCE=0.60, which was 60 previously. Thanks

robertfgoodworth commented 2 years ago

It may or maynot be related to this issues, I'm getting a simular error when trying to use docker-trainer, i selct a image, add a name then click on "teach me" then get this error straight away.

image

Love the idea of training deepstack faces this way, hopefully you can help me.

t0mer commented 2 years ago

It may or maynot be related to this issues, I'm getting a simular error when trying to use docker-trainer, i selct a image, add a name then click on "teach me" then get this error straight away.

image

Love the idea of training deepstack faces this way, hopefully you can help me.

Hi, Can you share your compose file, please? It seems to be that the "DEEPSTACK_HOST_ADDRESS" does not start with "HTTP", please add it to the beginning of the URL (you can see it in the error).

robertfgoodworth commented 1 year ago

I see said the blind man, it’s working, THANKYOU

Regards

Robert & Anne Goodworth

Bonython, ACT, 2905

Australia

From: Tomer Klein @.> Sent: Friday, May 6, 2022 6:44 AM To: t0mer/deepstack-trainer @.> Cc: RGoodworth @.>; Comment @.> Subject: Re: [t0mer/deepstack-trainer] deepstack-trainer not working (Issue #11)

It may or maynot be related to this issues, I'm getting a simular error when trying to use docker-trainer, i selct a image, add a name then click on "teach me" then get this error straight away.

https://user-images.githubusercontent.com/30360464/166866559-4b9952ec-d4a5-4704-b98c-08980efb029b.png

Love the idea of training deepstack faces this way, hopefully you can help me.

Hi, Can you share your compose file, please? It seems to be that the "DEEPSTACK_HOST_ADDRESS" does not start with "HTTP", please add it to the beginning of the URL (you can see it in the error).

— Reply to this email directly, view it on GitHub https://github.com/t0mer/deepstack-trainer/issues/11#issuecomment-1119028368 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AHHUHED5RCXD44JNG7IX5V3VIQXKTANCNFSM5QPIB45Q . You are receiving this because you commented. https://github.com/notifications/beacon/AHHUHEAIYRN7IJTIQDO5CNTVIQXKTA5CNFSM5QPIB452YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIKZQJEA.gif Message ID: @.***>